Skip to content

attrs/tinyconfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published