An open API service indexing awesome lists of open source software.

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

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!