Skip to content

nice-registry/npm-usernames-by-email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

look up npm usernames by email address

Resources

Stars

Watchers

Forks

Packages

No packages published