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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.4.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.4.0
    0
  • 0.3.0
    0
  • 0.2.0
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i requirein

Weekly Downloads

0

Version

0.4.0

License

ISC

Last publish

Collaborators

  • mikeal