Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

custom-require

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

custom-require - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

8

package.json

@@ -13,4 +13,4 @@ {

"module",
"custom",
"function"
"custom",
"function"
],

@@ -24,3 +24,3 @@ "license": "MIT",

},
"version": "0.0.1"
}
"version": "0.0.2"
}

@@ -5,2 +5,6 @@ # Custom Require

## Installation
`npm install custom-require`
## Usage

@@ -42,3 +46,4 @@

// Requiring modules already required by another instance will not be a problem. Second walker will receive all the dependencies too
// Requiring modules already required by another instance will not be a problem
// Second walker will receive all the dependencies too
secondWalker.require("./test");

@@ -65,2 +70,4 @@ ```

```
Custom Require will be only able to track modules loaded after it has been required for the first time, so is recommendable to require it at the top of the entry-point file. Is not needed to add it to each file. Only at the entry-point.
Custom Require will be only able to track modules loaded after it has been required for the first time, so is recommendable to require it at the top of the entry-point file. Is not needed to add it to each file. Only at the entry-point.
NOTE: Custom Require will start tracking right after requiring it. Is not necessary to immediatly create an instance.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc