0.0.2 • Published 2 years ago

@daydog/toml v0.0.2

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
2 years ago

@daydog/toml

A TOML parsing tool written in Rust for Node.js

Build Status

NPM

Installation

@daydog/toml is available via npm.

npm install @daydog/toml

Usage

parse

You can convert toml strings to JSON both synchronously and asynchronously.

const { parseSync } = require('@daydog/toml')
var data = parseSync(`
                    [test]
                    foo = "bar"
                    `)
console.log(data)
const { pasre } = require('@daydog/toml')
pasre(`
       [test]
       foo = "bar"
       `).then(res => console.log(res))

License

toml-node is licensed under the GPL-3.0 license agreement. See the LICENSE file for more information.