wasm-toml-js
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

TOML format for Node.js

Build Status

NPM

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.

Readme

Keywords

none

Package Sidebar

Install

npm i wasm-toml-js

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

296 kB

Total Files

6

Last publish

Collaborators

  • sigoden