# @pkgstats/npm-user

> Get user info of an npm user

Latest version **4.1.1** (published 2019-09-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @pkgstats/npm-user
pnpm add @pkgstats/npm-user
yarn add @pkgstats/npm-user
bun add @pkgstats/npm-user
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.1.1 |
| Published | 2019-09-09 |
| First published | 2019-07-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 3 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 58 |
| Author | Sindre Sorhus |
| Maintainers | ryanhefner |
| Keywords | npm, user, username, homepage, email, get, website, scrape, info, profile |

## Links

- npm: https://www.npmjs.com/package/@pkgstats/npm-user
- Repository: https://github.com/sindresorhus/npm-user
- Homepage: https://github.com/sindresorhus/npm-user#readme
- Issues: https://github.com/sindresorhus/npm-user/issues
- npm.io page: https://npm.io/package/@pkgstats/npm-user

## Dependencies (3)

- [got](https://npm.io/package/got.md) ^9.6.0
- [cheerio](https://npm.io/package/cheerio.md) ^0.22.0
- [npm-email](https://npm.io/package/npm-email.md) ^3.2.0

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 4.1.1 (latest) — 2019-09-09
- 4.1.0 — 2019-07-04

## README

# npm-user [![Build Status](https://travis-ci.org/sindresorhus/npm-user.svg?branch=master)](https://travis-ci.org/sindresorhus/npm-user)

> Get user info of an npm user

Since npm has no API for this we're forced to scrape the [profile page](https://www.npmjs.com/~sindresorhus).

*Use the faster [npm-email](https://github.com/sindresorhus/npm-email) package if you only need the email.*


## Install

```
$ npm install npm-user
```


## Usage

```js
const npmUser = require('npm-user');

(async () => {
	console.log(await npmUser('sindresorhus'));
	/*
	{
		name: 'Sindre Sorhus',
		avatar: 'https://gravatar.com/avatar/d36a92237c75c5337c17b60d90686bf9?size=496',
		email: 'sindresorhus@gmail.com',
		github: 'sindresorhus',
		twitter: 'sindresorhus'
	}
	*/
})();
```

*Values will be `null` if they're not set in the npm profile.*


## Related

- [npm-user-cli](https://github.com/sindresorhus/npm-user-cli) - CLI for this module
- [npm-email](https://github.com/sindresorhus/npm-email) - Get the email of an npm user
- [npm-keyword](https://github.com/sindresorhus/npm-keyword) - Get a list of npm packages with a certain keyword
- [package-json](https://github.com/sindresorhus/package-json) - Get the package.json of a package from the npm registry
- [npm-user-packages](https://github.com/kevva/npm-user-packages) - Get packages by an npm user


## License

MIT © [Sindre Sorhus](https://sindresorhus.com)

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