req
requirein
npm i requirein
req

requirein

A require() that works in a specified directory.

by Mikeal Rogers

0.4.0 (see all)License:ISCTypeScript:Not Found
npm i requirein
Readme

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.

Downloads/wk

5

GitHub Stars

18

LAST COMMIT

8yrs ago

MAINTAINERS

1

CONTRIBUTORS

0

OPEN ISSUES

2

OPEN PRs

0
VersionTagPublished
0.4.0
latest
8yrs ago
No alternatives found
No tutorials found
Add a tutorial