1.4.0 • Published 1 year ago

@artginzburg/npmstalk v1.4.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Usage

As a terminal utility

npx @artginzburg/npmstalk username

Output example: { total: 1247, packages: { somename: 515, anotherpackage: 732 } }

As a package

npm i @artginzburg/npmstalk

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:

npm start username

For automated testing (not so automated, currently), and using process.env.USER as the username:

npm test
1.4.0

1 year ago

1.3.2

2 years ago

1.3.1

2 years ago

1.2.0

2 years ago

1.3.0

2 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago