cfg-js

0.1.1 • Public • Published

cfg-js

A simple config module

Install

This package depends on Node.js.

$ npm install cfg-js

Usage

var Config = require('cfg-js');
 
var cfg = new Config({
    hello: {
        cfg: {
            js: 'hello cfg-js'
        }
    }
});
 
cfg.has('hello.cfg.js'); // true
cfg.get('hello.cfg.js'); // 'hello cfg-js'
 
cfg.has('js.cfg.hello'); // false
cfg.get('js.cfg.hello'); // undefined

License

This software is under the MIT license. See the complete license in:

LICENSE

/cfg-js/

    Package Sidebar

    Install

    npm i cfg-js

    Weekly Downloads

    2

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • cravler