1.0.0 • Published 6 years ago
npm-usernames-by-email v1.0.0
npm-usernames-by-email
look up npm usernames by email address
This module does not fetch live data from an API. Instead it contains exported data from the owner-profiles and owners modules.
If you need to do lookups in the other direction (email addresses by username), see the get-email-address-from-npm-username, module which pings the npm registry directly.
Installation
npm i npm-usernames-by-email --save
Usage (JS)
const usernames = require('npm-usernames-by-email')
usernames['zeke@sikelianos.com']
// => ['zeke']
usernames['andrewbgoode@gmail.com']
// => ['abg', 'nexdrew']
Usage (Command Line)
With npx
:
$ npx npm-usernames-by-email zeke@sikelianos.com
zeke
With npm global installation:
$ npm i -g npm-usernames-by-email
$ npm-username zeke@sikelianos.com
zeke
Tests
npm install
npm test
Dependencies
None
Dev Dependencies
- jest: Delightful JavaScript Testing.
- owner-profiles: Profile data for every npm author: name, email, GitHub handle, etc.
- standard: JavaScript Standard Style
- standard-markdown: Test your Markdown files for Standard JavaScript Style™
License
MIT
1.0.0
6 years ago