conf2p

0.1.2 • Public • Published

conf2p

lol

Use

//input.conf
# xxx
a=3
b=true
 
//index.js
const conf2p = require('conf2p')
let obj = new conf2p('input.conf')
console.log(await obj.toString()) // --a=3 --b=true
console.log(await obj.toDic()) // {a: 3, b: true}

Readme

Keywords

Package Sidebar

Install

npm i conf2p

Weekly Downloads

4

Version

0.1.2

License

MIT

Last publish

Collaborators

  • miloas