PLAYGROUND (experimental)

load_toml

Load a TOML file (local or remote) and convert it in 'map' structure
load_toml(
    filepath, 
    [key], 
    [timeout]
)

Load a TOML file (local or remote) and convert it in 'map' structure

Syntaxe

var data = load_toml("config.toml", key="xxx");

Arguments

NameTypeRequiredDefaultDescription
filepathyes-Path to TOML file or URL
key--Specific key to retrieve (optional)
timeout--Network timeout in ms (optional)