@feizheng/next-abstract-configuration

1.2.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @feizheng/next-abstract-configuration

Weekly Downloads

12

Version

1.2.4

License

MIT

Unpacked Size

9.72 kB

Total Files

6

Last publish

Collaborators

  • afeiship