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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    2
  • 0.0.1
    1

Package Sidebar

Install

npm i set-node-path

Weekly Downloads

3

Version

0.0.2

License

MIT

Last publish

Collaborators

  • vinsonchuong