🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

hidden-require

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hidden-require

stackless unless otherwise requested error

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

hidden-require Build Status

This library is intended at hiding and making some dependencies in node libraries optional when bundled in webpack/browserify.

Example:

const hiddenRequire = require('hidden-require');

/*
allow request to be optional to allow for other platforms to shim request
  fetch, google app script (UrlFetchApp), etc.. many more

More use cases:
  - node-gyp dependencies where there are c/c++ bindings
*/
module.exports = (request = hiddenRequire('request')) => {
  ...// do something with request and then some
}

FAQs

Package last updated on 23 Apr 2018

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