@jswork/next-abstract-configuration

1.0.5 • Public • Published

next-abstract-configuration

Abstract configuration.

version license size download

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.

Dependents (2)

Package Sidebar

Install

npm i @jswork/next-abstract-configuration

Weekly Downloads

79

Version

1.0.5

License

MIT

Unpacked Size

8.01 kB

Total Files

5

Last publish

Collaborators

  • afeiship
  • yujiao.luo