You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
8 years ago | |
---|---|---|
src | 8 years ago | |
test | 8 years ago | |
.gitignore | 8 years ago | |
.travis.yml | 8 years ago | |
LICENSE | 8 years ago | |
README.md | 8 years ago | |
package.json | 8 years ago |
README.md
requireable
Enables a module to require itself
Mocks the require command to include the current package when the the name
from the current packages package.json
is required.
Especially useful in tests if you want to require the package you're testing by name rather than relative paths.
Install
npm install --save-dev requireable
Usage
require('requirable');
That's it! You can now do require('package-name')
.
License
MIT © Luke Childs