This a configure file manager.
configstore
, except all
add
method, It can upgrade from String
/Number
to Array
/Object
npm install config-operator
var Config = require('config-operator')
var config = new Config()
config.set('key', 'value')
// {key: 'value'}
config.add('key', 'value2')
// {key: ['value', 'value2']
config.get('key')
// {key: ['value', 'value2']
config.remove('key', 'value')
// {key: ['value2']}
config.remove('key')
// {}
config config object
return config instance