Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 919 Bytes

toml.md

File metadata and controls

42 lines (32 loc) · 919 Bytes

TOML (object)

An object with a parse function and a stringify function which can be used to parse TOML document strings into objects and serialize objects into TOML document strings.

Its interface is similar to JSON.parse and JSON.stringify, but TOML.parse and TOML.stringify do not support the spacing/replacer/reviver options that JSON.parse and JSON.stringify do.

var TOML: {
  parse(data: string): {
    [key: string]: any;
  };
  stringify(data: { [key: string]: any }): string;
};

TOML.parse (method)

Parse a TOML document string (data) into an object.

parse(data: string): {
  [key: string]: any;
};

TOML.stringify (method)

Convert an object into a TOML document.

stringify(data: {
  [key: string]: any;
}): string;