# npm-packages

> Fetch a user's package count from NPM

Latest version **0.0.1** (published 2013-11-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install npm-packages
pnpm add npm-packages
yarn add npm-packages
bun add npm-packages
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2013-11-17 |
| First published | 2013-11-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Boris Cherny |
| Maintainers | bcherny |
| Keywords | npm, user, contribute, contribution, repo, repository, module, package, activity, number, tally, count, author, social |

## Links

- npm: https://www.npmjs.com/package/npm-packages
- Repository: git@github.com:eighttrackmind/npm-packages
- Issues: https://github.com/eighttrackmind/npm-packages/issues
- npm.io page: https://npm.io/package/npm-packages

## Dependencies (2)

- [when](https://npm.io/package/when.md) ~2.6.0
- [scrape](https://npm.io/package/scrape.md) ~0.2.3

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2013-11-17

## README

npm-packages
====================

[![Build Status](https://travis-ci.org/eighttrackmind/npm-packages.png)](https://travis-ci.org/eighttrackmind/npm-packages.png)
Fetch a user's package count from NPM

## Usage

```coffee
getPackages = require 'npm-packages'

success = (count) -> ...
error = (err) -> ...
progress = (countSoFar) -> ...

getPackages 'someUserName', success, error, progress
```

## Features

- Uses promises
- Supports paginated responses
- Supports `progress` for paginated responses

# Implementation notes

- Uses scraping (:[) because NPM has no API and the [npm-stats](https://npmjs.org/package/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

---
_Source: https://npm.io/package/npm-packages · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
