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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i set-node-path

      Weekly Downloads

      3

      Version

      0.0.2

      License

      MIT

      Last publish

      Collaborators

      • vinsonchuong