vi-config

1.0.2 • Public • Published

vi-config

An easy, simple config loader for nodejs

Demo

import * as path from 'path';
import * as config from '../dist/main';
config.init({
    root: path.resolve(__dirname, 'config')
});

console.log(config.get('foo.bar') + ' ' + config.get('foo.baz')); // Got 'Hello World'

Readme

Keywords

none

Package Sidebar

Install

npm i vi-config

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

9.95 kB

Total Files

9

Last publish

Collaborators

  • viringbells