Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nbundler

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nbundler

A internal dependency manager

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 01 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc