https://github.com/gillstrom/dpn
Get the dependents of a users npm modules
https://github.com/gillstrom/dpn
dependents npm
Last synced: 5 days ago
JSON representation
Get the dependents of a users npm modules
- Host: GitHub
- URL: https://github.com/gillstrom/dpn
- Owner: gillstrom
- License: mit
- Created: 2015-11-09T06:30:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-23T10:47:04.000Z (over 7 years ago)
- Last Synced: 2025-04-14T01:54:07.076Z (5 days ago)
- Topics: dependents, npm
- Language: JavaScript
- Size: 10.7 KB
- Stars: 27
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- awesome-npm - dpn - Get the dependents of a user's npm packages. (Packages / Registry)
- awesome-npm - dpn - Get the dependents of a user's npm packages. (Packages / Registry)
- fucking-awesome-npm - dpn - Get the dependents of a user's npm packages. (Packages / Registry)
README
# dpn [](https://travis-ci.org/gillstrom/dpn)
> Get the dependents of a users npm modules
## Install
```
$ npm install dpn
```## Usage
```js
const dpn = require('dpn');dpn('gillstrom').then(result => {
console.log(result);
//=> {'app-size': ['osx-app'], 'array-max-length': ['get-arrows'], 'battery-level': ['evac'], ...}
});
```## API
### dpn(username)
Returns a promise that resolves to an object.
#### username
*Required*
Type: `string`The username to look up.
## Related
* [dpn-cli](https://github.com/gillstrom/dpn-cli) - CLI for this module
## License
MIT © [Andreas Gillström](https://github.com/gillstrom)