https://github.com/miloas/conf2p
It can transform a specified configure file to cmd parameters.
https://github.com/miloas/conf2p
Last synced: 11 months ago
JSON representation
It can transform a specified configure file to cmd parameters.
- Host: GitHub
- URL: https://github.com/miloas/conf2p
- Owner: Miloas
- Created: 2016-11-19T21:20:10.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-20T06:48:48.000Z (over 9 years ago)
- Last Synced: 2025-07-03T18:11:10.886Z (12 months ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# conf2p
> lol
# Use
```javascript
//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}
```