get-cff
v0.1.4
Published
Getting config from file
Downloads
3
Readme
get-cff
Getting config from file
Why ?
Auto detect type file and import config from file. Support:
- [x] js
- [x] json
- [x] dot file
- [x] yml
Install
npm i -S get-cff
Note: This project is compatible with node v6+
Usage
import getCff from 'get-cff';
getCff('path/to/config/file')
.then(config => {
console.log(config);
});
Returns config object {property: value}
Options
path
Type: string
Default: ''
Description: path to you config file