0.0.5 • Published 11 years ago

swrap v0.0.5

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

swrap Build Status

Simple Node service wrapper, with basic support for configs and classes. Example:

var swrap = require( "swrap" );
var appwrapper = swrap.app(); // or new wrap.app();

// ...initialize your services, for example express, mongoose, restify, etc:
appwrapper.set( "http", expressApp );
appwrapper.set( "db", mongoose );

// later you can get them:
mongoose = appwrapper.get( "db" );

// We parse configuration JSONs with CJSON, so if you want, comment'em!
appwrapper.config.load( "config/commented.json" );
appwrapper.config.get( "my.nested.config.is.awesome" ); // => the value of your config!

Installation

npm install swrap

Tests

Execute the following commands to get the tests running in swrap:

npm install -d
npm test

License

MIT

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago