Ninja Programmers Mindmeld
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

requirein

0.4.0 • Public • Published

requirein(path, name)

Use node's require function as if the file you're requiring from is in another target directory.

var requirein = require('requirein')
  , pwd = process.env.PWD
  , request = requirein(pwd, 'request')
  ;

Credits to Bradley Meck for figuring this out and writing the original code.

Keywords

install

npm i requirein

Downloadsweekly downloads

0

version

0.4.0

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability