simple-yaml-config
v0.1.0
Published
Nodejs config.
Downloads
8
Readme
Simple yaml config
Nodejs Simple yaml config.
Install
npm install simple-yaml-config
Usage
- load config
const Config = require('simple-yaml-config')
let config = new Config()
config.load('resource uri', options).then((loadedData) => {
// do something after config was loaded
}).catch((err) => {
// do something when error was occured
})
- save config
const Config = require('simple-yaml-config')
let config = new Config({
version: 1
})
config.save('file name', options).then(() => {
// do something after config was saved
}).catch((err) => {
// do something when error was occured
})
Test
npm test
License
MIT