Require local files relative to the path provided at require.
npm install include
var include = require('include')(__dirname);
var foo = require('../../../path/to/foo');
var foo = include('path/to/foo');
Selectively mirror the npm registry inside your firewall. Filter packages based on security, licensing, code quality and more. Build awesome stuff faster. Try npm Enterprise for free…
how? learn more