https://github.com/ymc-github/js-lib-config-engine
create,update,read,delete and merge config for ymc
https://github.com/ymc-github/js-lib-config-engine
config ymc
Last synced: 6 days ago
JSON representation
create,update,read,delete and merge config for ymc
- Host: GitHub
- URL: https://github.com/ymc-github/js-lib-config-engine
- Owner: YMC-GitHub
- License: mit
- Created: 2020-01-23T00:59:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T19:34:56.000Z (over 3 years ago)
- Last Synced: 2025-02-25T09:24:04.617Z (over 1 year ago)
- Topics: config, ymc
- Language: JavaScript
- Homepage:
- Size: 894 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# config-engine
## desc
create,update,read,delete and merge config for js
## how to use for production?
### install
```sh
#npm install config-engine --save-dev
npm install https://github.com/YMC-GitHub/js-lib-config-engineds.git --save-dev
```
### config
```js
const state = {}
```
### usage
```js
import He from 'config-engine'
He.config({}).merge(state).create(key,val).update(key,val).delete(key,val).read(key)
```
## how to use for developer?
### install
```sh
#get the code
git clone https://github.com/ymc-github/js-lib-config-engine.git
#get his dep
npm install
```
### usage
```sh
#dev
npm run dev
#build
npm run build
#release
npm run release
#lint
npm run lint
npm run lint:no-fix
#format
npm run beautify
#test
npm run test
npm run test:unit
npm run test:coverage
```
## Author
yemiancheng
## License
MIT