This package has been deprecated

Author message:

this package is no longer maintained.

tinyconfig

0.1.1 • Public • Published

tinyconfig

$ npm install tinyconfig --save
// init
var config = require('tinyconfig')(module);

// alt init
config = require('tinyconfig')('category');

// set
config('key', 'value');

// get
var value = config('key');

// remove
config('key', null);

// misc
var b = config.has('key');
var value = config.get('key');
var keys = config.keys();
config.set('key', 'value');
config.set({
    'a': 'value',
    'b': 'value'
});
config.clear();

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Published

Version History

  • Version
    Downloads (Last 7 Days)
    • Published

Package Sidebar

Install

npm i tinyconfig

Weekly Downloads

11

Version

0.1.1

License

MIT

Unpacked Size

22 kB

Total Files

9

Last publish

Collaborators

  • admin.attrs
  • aquarela53
  • joje