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

https://github.com/codedotjs/dep-graph

:anchor: Packages count that a repository depends on!
https://github.com/codedotjs/dep-graph

dependents package repository

Last synced: 24 days ago
JSON representation

:anchor: Packages count that a repository depends on!

Awesome Lists containing this project

README

          




D E P - G R A P H






Packages count that a repository depends on!

### Install

```
$ npm install --save dep-graph-count
```

### Usage

```js
const depGraphCount = require('dep-graph-count');

depGraphCount('facebook', 'react').then(res => {
console.log(res);
// { repositories: '1,147,374', packages: '46,145' }

// or

console.log(res.repositories);
// 1,147,374

// or

console.log(res.packages);
// 46,145
});
```

### `API`

#### __`depGraphCount(username, repository)`__

#### __`depGraphCount(organization, repository)`__

__`typeof`__ `username/organization` __-__ __`string`__

__`tyepof`__ `repository`
__-__ __`string`__

### Related

- __[`depg`](https://github.com/CodeDotJS/depg)__ `:` `Command line tool to find total dependents on a repository!`

## License

MIT - Copyright © [Rishi Giri](http://rishi.ml)