0.2.0 • Published 4 years ago
wasm-toml-js v0.2.0
TOML format for Node.js
If you haven't heard of TOML, well you're just missing out. Go check it out now. Back? Good.
TOML Spec Support
wasm-toml-js supports version 0.5.0 the TOML spec as specified by mojombo/toml@v0.5.0
Installation
wasm-toml-js is available via npm.
npm install wasm-toml-js
Usage
const { parse, stringify } = require("../pkg");
const assert = require("assert");
const tomlContent = `title = 'TOML Example'
[owner]
name = 'Tom Preston-Werner'
`
const jsonValue = parse(tomlContent);
const tomlString = stringify(jsonValue);
assert.deepEqual(tomlContent, tomlString);
License
wasm-toml-js is licensed under the MIT license agreement. See the LICENSE file for more information.