set-node-path

0.0.2 • Public • Published

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');

Package Sidebar

Install

npm i set-node-path

Weekly Downloads

2

Version

0.0.2

License

MIT

Last publish

Collaborators

  • vinsonchuong