Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gillstrom/dpn
Get the dependents of a users npm modules
https://github.com/gillstrom/dpn
dependents npm
Last synced: 1 day 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 (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-23T10:47:04.000Z (about 7 years ago)
- Last Synced: 2024-10-30T17:47:43.498Z (about 1 month ago)
- Topics: dependents, npm
- Language: JavaScript
- Size: 10.7 KB
- Stars: 27
- Watchers: 4
- 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)
README
# dpn [![Build Status](https://travis-ci.org/gillstrom/dpn.svg?branch=master)](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)