vars

A simple class to keep track of your project settings.

npm install vars
2 downloads in the last week
2 downloads in the last month

Node-Vars

Vars is a simple class to help you manage your project settings. The use is very simple with a one to one relationship.

It provides a simple API to get/set variables. When you call get() you can also pass in a default value in case that setting does not exist.

// settings.js
var Vars = require('vars').Vars;

Vars.set('username', 'rich');
Vars.set('email', 'test@example.com');


// abstract.js
var Vars = require('vars').Vars;

var username = Vars.get('username'); // rich
var newVar = Vars.get('newVar', 'new!');  // new!
npm loves you