simple-yaml-config

0.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i simple-yaml-config

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

5.43 kB

Total Files

7

Last publish

Collaborators

  • sc0vu