nbundler
NodeJS private package manager
Usage
See test
directory for a complete example.
Initialization
You must require nbundler/setup
prior to including any dependency. This need to be done only once.
Bundlefile.js
bundlename = 'pagarme-api';bundlerequirePath = 'lib'; bundle;
Require Path
Bundle automatically augments the require path with packages own directories. So, if you have the following structure:
/
Bundlefile.js
lib
server.js
deps
Bundlefile.js
pagarme-core
lib
transaction.js
You can do the following:
var Server = require('pagarme/server');
var Transaction = require('pagarme/transaction');
As the module do not manage files, you can use whatever you want to manage them(e.g.: Git).