https://github.com/leo/module-paths
Load the paths of your dependencies
https://github.com/leo/module-paths
Last synced: about 1 year ago
JSON representation
Load the paths of your dependencies
- Host: GitHub
- URL: https://github.com/leo/module-paths
- Owner: leo
- License: mit
- Created: 2016-09-05T12:34:07.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-05-12T16:09:22.000Z (about 9 years ago)
- Last Synced: 2025-05-13T04:54:34.927Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://npmjs.com/module-paths
- Size: 12.7 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# module-paths
Load the paths of your dependencies:
## Usage
```js
import modulePaths from 'module-paths'
modulePaths(process.mainModule)
```
## Contribute
1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device
2. Link the package to the global module directory: `npm link`
3. Within the module you want to test your local development instance of module-paths, just link it to the dependencies: `npm link module-paths`. Instead of the default one from npm, node will now use your clone of module-paths!