npm-packages

0.0.1 • Public • Published

npm-packages

Build Status Fetch a user's package count from NPM

Usage

getPackages = require 'npm-packages'
 
success = (count) -> ...
error = (err) -> ...
progress = (countSoFar) -> ...
 
getPackages 'someUserName'successerrorprogress

Features

  • Uses promises
  • Supports paginated responses
  • Supports progress for paginated responses

Implementation notes

  • Uses scraping (:[) because NPM has no API and the npm-stats package is inconsistent and times out.
  • Because of the scraping approach, we cannot differentiate between user that exist but have no repos, and users that don't exist. Either will return a rejected promise.

Supported environments

  • Node
  • CommonJS

Readme

Keywords

none

Package Sidebar

Install

npm i npm-packages

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • bcherny