Socket
Book a DemoInstallSign in
Socket

npm-user

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-user

Get user info of an npm user

6.1.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

npm-user

Get user info of an npm user

Since npm has no API for this, we are forced to scrape the profile page.

Use the faster npm-email package if you only need the email.

Install

npm install npm-user

Usage

import npmUser from 'npm-user';

console.log(await npmUser('sindresorhus'));
/*
{
	name: 'Sindre Sorhus',
	avatar: 'https://www.npmjs.com/npm-avatar/…',
	email: 'sindresorhus@gmail.com',
	github: 'sindresorhus',
	twitter: 'sindresorhus'
}
*/

The values will be undefined if they're not set in the npm profile.

  • npm-user-cli - CLI for this module
  • npm-email - Get the email of an npm user
  • npm-keyword - Get a list of npm packages with a certain keyword
  • package-json - Get the package.json of a package from the npm registry

Keywords

npm

FAQs

Package last updated on 28 Feb 2024

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.