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!
- Host: GitHub
- URL: https://github.com/codedotjs/dep-graph
- Owner: CodeDotJS
- License: mit
- Created: 2018-08-02T21:08:08.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-02T21:56:30.000Z (over 7 years ago)
- Last Synced: 2025-03-20T00:41:17.651Z (8 months ago)
- Topics: dependents, package, repository
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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)