0.2.0 • Published 10 years ago

graceful-require v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

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
0.2.0

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago