@feizheng/next-abstract-configuration
v1.2.4
Published
Abstract configuration.
Downloads
89
Readme
next-abstract-configuration
Abstract configuration.
installation
npm install -S @feizheng/next-abstract-configuration
apis
| api | params | description | | ------ | ------------ | ------------------------ | | get | path | Get value from path | | gets | - | Get all values. | | set | (path,value) | Set value by path. | | sets | object | Set multi value by path. | | update | ojbect | Set value and save. | | save | - | Save to path. |
usage
import NxAbstractConfiguration from '@feizheng/next-abstract-configuration';
// code goes here:
const conf = new NxAbstractConfiguration();
conf.set('name','@feizheng/next-abstract-configuration');
conf.get('scirpts.build','gulp');
conf.sets({ name: 'fei', age: 100});
conf.gets();
implements
- https://github.com/afeiship/next-json-configuration
- https://github.com/afeiship/next-yaml-configuration