1.2.4 • Published 4 years ago

@feizheng/next-abstract-configuration v1.2.4

Weekly downloads
14
License
MIT
Repository
-
Last release
4 years ago

next-abstract-configuration

Abstract configuration.

installation

npm install -S @feizheng/next-abstract-configuration

apis

apiparamsdescription
getpathGet value from path
gets-Get all values.
set(path,value)Set value by path.
setsobjectSet multi value by path.
updateojbectSet 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