yconf

0.0.6 • Public • Published

YAML Config reader

YAML Config reader makes random access to the configuration easier

Usage

Install yconf using npm i yconf

Example:

const {YConfig} = require('yconf');

const conf = new YConfig();

conf.loadFile('./resources/config.yaml');

console.log(`Name of config: ${conf.getOrDefault('metadata.name', 'untitled')}`);

Readme

Keywords

Package Sidebar

Install

npm i yconf

Weekly Downloads

0

Version

0.0.6

License

ISC

Unpacked Size

4.34 kB

Total Files

6

Last publish

Collaborators

  • chakradarraju