Very basic options for NodeJS
npm install node-opt
Stores options as pairs in an object. It's not multidementional. It's flat! Values can be objects themselves - but, names are strings.
No namespacing! Any part of your application can see the data.
var opt = require('node-opt');
opt();
// returns all params that are stored
opt({obj});
// stores a set of pairs (overwriting).
//If JSON can be string and will break functionality (won't throw error however)
opt('name');
// returns the value associated with that name
opt('name', 'value');
// sets a single option of 'name' to 'value'
NodeOpt by Darren Looby is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Based on a work at https://github.com/darrenlooby/node-opt.
