Skip to content

saqqdy/load-toml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

load-toml

Read and parse a .toml file

NPM version Codacy Badge Test coverage npm download License

Sonar

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

  1. use load-toml in async mode
import { loadToml } from 'load-toml'

loadToml().then(path => {
  console.log('result is: ', path) // { "name": "saqqdy" }
})
  1. 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.

License

MIT