Skip to content
forked from pagarme/bundler

Node.js private package manager

License

Notifications You must be signed in to change notification settings

the-cc-dev/bundler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

bundle.name        = 'pagarme-api';
bundle.requirePath = 'lib';

bundle.dependency('pagarme-core', 'deps/pagarme-core');

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).

About

Node.js private package manager

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%