set-node-path
v0.0.2
Published
Set the Node.js module search path
Downloads
36
Readme
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');