<commit_before># 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 a 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) if you only need the email.*


## Install

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


## Usage

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

npmUser('sindresorhus').then(user => {
	console.log(user);
	/*
	{
		name: '<NAME>',
		email: '<EMAIL>',
		homepage: 'http://sindresorhus.com',
		github: 'sindresorhus',
		twitter: 'sindresorhus',
		freenode: '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 a 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


## License

MIT © [<NAME>](http://sindresorhus.com)
<commit_msg>Add `npm-user-packages` to related<commit_after># 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 a 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) if you only need the email.*


## Install

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


## Usage

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

npmUser('sindresorhus').then(user => {
	console.log(user);
	/*
	{
		name: '<NAME>',
		email: '<EMAIL>',
		homepage: 'http://sindresorhus.com',
		github: 'sindresorhus',
		twitter: 'sindresorhus',
		freenode: '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 a 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 a npm user


## License

MIT © [<NAME>](http://sindresorhus.com)

{'fraction_non_alphanumeric': 0.17197924388435878, 'fraction_numerical': 0.0, 'mean_word_length': 4.0543071161048685, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 17, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2386232', 'n_tokens_mistral': 1060, 'n_tokens_neox': 971, 'n_words': 232}