root-require
Advanced tools
Comparing version 0.2.0 to 0.3.0
{ | ||
"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. |
5342
90