Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sindresorhus/npm-email
Get the email of an npm user
https://github.com/sindresorhus/npm-email
Last synced: about 1 month ago
JSON representation
Get the email of an npm user
- Host: GitHub
- URL: https://github.com/sindresorhus/npm-email
- Owner: sindresorhus
- License: mit
- Created: 2015-05-07T00:56:09.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2024-02-29T06:29:16.000Z (8 months ago)
- Last Synced: 2024-04-13T17:38:26.417Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 25.4 KB
- Stars: 32
- Watchers: 7
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- awesome-npm - npm-email - Get the email of an npm user. (Packages / Registry)
- awesome-npm - npm-email - Get the email of an npm user. (Packages / Registry)
README
# npm-email
> Get the email of an npm user
## Install
```sh
npm install npm-email
```## Usage
```js
import npmEmail from 'npm-email';console.log(await npmEmail('sindresorhus'));
//=> '[email protected]'
```## API
### npmEmail(username)
Returns a promise for the user's email address, or `undefined` if the user does not exist or the email could not be found.
#### username
Type: `string`
The npm username to look up.
## Related
- [npm-email-cli](https://github.com/sindresorhus/npm-email-cli) - CLI for this module
- [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](https://github.com/sindresorhus/npm-user) - Get user info of an npm user