https://github.com/artginzburg/npmstalk
JS module · Total downloads of an NPM maintainer
https://github.com/artginzburg/npmstalk
badge github npm npm-package statistics
Last synced: 5 months ago
JSON representation
JS module · Total downloads of an NPM maintainer
- Host: GitHub
- URL: https://github.com/artginzburg/npmstalk
- Owner: artginzburg
- Created: 2021-08-12T21:29:17.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-07-22T12:30:22.000Z (11 months ago)
- Last Synced: 2025-10-09T02:57:25.908Z (9 months ago)
- Topics: badge, github, npm, npm-package, statistics
- Language: JavaScript
- Homepage: https://runkit.com/artginzburg/npmstalk
- Size: 68.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Usage
## As a terminal utility
```ps1
npx @artginzburg/npmstalk username
```
Output example:
`{ total: 1247, packages: { somename: 515, anotherpackage: 732 } }`
## As a package
`npm i @artginzburg/npmstalk`
```js
import getMaintainerDownloads from '@artginzburg/npmstalk`
async function doSomething() {
// some code
const usernameDownloads = await getMaintainerDownloads('username')
console.log(`Hey, username has ${usernameDownloads.total} downloads already!`)
// ...
}
// ...
doSomething() // Hey, username has 615 downloads already!
```
# Prerequisites
- Node.JS
## Development
For manual testing:
```ps1
npm start username
```
For automated testing (not so automated, currently), and using process.env.USER as the username:
```ps1
npm test
```