1.1.0 • Published 1 year ago
load-toml v1.1.0
load-toml
Read and parse a .toml file
For API documentation, see: API Docs
Installing
# use pnpm
$ pnpm install load-toml
# use npm
$ npm install load-toml --save
# use yarn
$ yarn add load-toml
Usage
- use
load-toml
in async mode
import { loadToml } from 'load-toml'
loadToml().then(path => {
console.log('result is: ', path) // { "name": "saqqdy" }
})
- use
load-toml
in sync mode
import { loadTomlSync } from 'load-toml'
console.log('result is: ', loadTomlSync()) // { "name": "saqqdy" }
Support & Issues
Please open an issue here.