Socket
Socket
Sign inDemoInstall

root-require

Package Overview
Dependencies
1
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.3.0

4

package.json
{
"name": "root-require",
"version": "0.2.0",
"description": "require() using a relative path from the root directory of the present module",
"version": "0.3.0",
"description": "For use in tests only! require() using a relative path from the root directory of the present module",
"main": "index.js",

@@ -6,0 +6,0 @@ "dependencies": {

root-require
============
> a more convenient require method for certain situations
a more convenient require method for running **TESTS ONLY**.
> ## WARNING:
> THIS MODULE DOES NOT WORK ALL THE TIME.
> I REPEAT. IT DOES NOT WORK ALL THE TIME.
> IT WILL CAUSE YOU HEADACHES IF YOU USE IT IN TWO MODULES WHICH DEPEND ON ONE ANOTHER, BECAUSE NPM OPTIMIZES DEPENDENCIES. AS LONG AS YOU ARE ONLY USING IT ONLY FOR TESTS, YOU SHOULD BE OK.
## How it do

@@ -7,0 +14,0 @@ This lets you `require()` using a relative path from the root directory of the present module.

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc