Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

npm-usernames-by-email

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-usernames-by-email

look up npm usernames by email address

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 11 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts