graceful-require

0.2.0 • Public • Published

graceful-require Build Status

Give require some options

Installation

Download node at nodejs.org and install it, if you haven't already.

npm install graceful-require --save

Usage

Demo. Rename node_modules to vendor.

$ ls
index.js node_modules package.json

$ mv node_modules vendor

then, you can require any directory name you liked

require = require('graceful-require')('vendor');
var table = require('text-table');
var t = table([
    [ 'master', '0123456789abcdef' ],
    [ 'staging', 'fedcba9876543210' ]
]);
console.log(t);

Tests

npm install
npm test

Dependents (0)

Package Sidebar

Install

npm i graceful-require

Weekly Downloads

0

Version

0.2.0

License

MIT

Last publish

Collaborators

  • watilde