find-node-modules
Version:
Return an array of all parent node_modules directories
19 lines (12 loc) • 914 B
Markdown
# nerf-dart
[](https://travis-ci.org/boennemann/nerf-dart)
[](https://coveralls.io/github/boennemann/nerf-dart?branch=master)
[](https://david-dm.org/boennemann/nerf-dart/next)
[](https://david-dm.org/boennemann/nerf-dart/next#info=dependencies)
> Maps a URL to an identifier.
```js
var toNerfDart = require('nerf-dart')
toNerfDart('http://registry.npmjs.org')
// //registry.npmjs.org/
```
Originally from [npm](http://npmjs.com/). Taken from https://github.com/npm/npm/blob/master/lib/config/nerf-dart.js and made available as a standalone package for easier reuse.