next-abstract-configuration
Abstract configuration.
installation
npm install -S @jswork/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 '@jswork/next-abstract-configuration';
// code goes here:
const conf = new NxAbstractConfiguration();
conf.set('name','@jswork/next-abstract-configuration');
conf.get('scirpts.build','gulp');
conf.sets({ name: 'fei', age: 100});
conf.gets();
license
Code released under the MIT license.