@daydog/toml
A TOML parsing tool written in Rust for Node.js
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.