Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miloas/conf2p
It can transform a specified configure file to cmd parameters.
https://github.com/miloas/conf2p
Last synced: 8 days 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 (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-20T06:48:48.000Z (almost 8 years ago)
- Last Synced: 2024-10-16T09:04:13.421Z (about 1 month ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 0
- Watchers: 3
- 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}
```