0.1.0 • Published 6 years ago

simple-yaml-config v0.1.0

Weekly downloads
7
License
MIT
Repository
-
Last release
6 years ago

Simple yaml config

Build Status codecov

Nodejs Simple yaml config.

Install

npm install simple-yaml-config

Usage

  1. 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
})
  1. 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