Socket
Book a DemoInstallSign in
Socket

requirein

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

requirein

A require() that works in a specified directory.

latest
Source
npmnpm
Version
0.4.0
Version published
Maintainers
1
Created
Source

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

require

FAQs

Package last updated on 17 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts