0.0.2 • Published 8 years ago
set-node-path v0.0.2
set-node-path
Set the Node.js module search path.
Installing
set-node-path
is available as an
npm package.
Usage
const path = require('path');
require('set-node-path')(
path.resolve('.'),
path.resolve('vendor')
);
// Resolves to './foo.js'
require('project/foo');