conf2p
v0.1.2
Published
It can transform a specified configure file to cmd parameters.
Downloads
1
Readme
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}