Installations
npm install @pkgstats/npm-user
Developer Guide
Typescript
No
Module System
N/A
Min. Node Version
>=8
Node Version
12.8.0
NPM Version
6.11.3
Score
63.2
Supply Chain
75.4
Quality
71.7
Maintenance
50
Vulnerability
95.4
License
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (81.68%)
TypeScript (18.32%)
Developer
sindresorhus
Download Statistics
Total Downloads
699
Last Day
1
Last Week
2
Last Month
13
Last Year
84
GitHub Statistics
57 Stars
54 Commits
13 Forks
8 Watching
1 Branches
13 Contributors
Bundle Size
239.17 kB
Minified
66.28 kB
Minified + Gzipped
Package Meta Information
Latest Version
4.1.1
Package Id
@pkgstats/npm-user@4.1.1
Unpacked Size
5.33 kB
Size
2.51 kB
File Count
5
NPM Version
6.11.3
Node Version
12.8.0
Total Downloads
Cumulative downloads
Total Downloads
699
Last day
0%
1
Compared to previous day
Last week
-50%
2
Compared to previous week
Last month
550%
13
Compared to previous month
Last year
-34.9%
84
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
npm-user
Get user info of an npm user
Since npm has no API for this we're forced to scrape the profile page.
Use the faster npm-email package if you only need the email.
Install
$ npm install npm-user
Usage
1const npmUser = require('npm-user'); 2 3(async () => { 4 console.log(await npmUser('sindresorhus')); 5 /* 6 { 7 name: 'Sindre Sorhus', 8 avatar: 'https://gravatar.com/avatar/d36a92237c75c5337c17b60d90686bf9?size=496', 9 email: 'sindresorhus@gmail.com', 10 github: 'sindresorhus', 11 twitter: 'sindresorhus' 12 } 13 */ 14})();
Values will be null
if they're not set in the npm profile.
Related
- 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
- npm-user-packages - Get packages by an npm user
License
MIT © Sindre Sorhus
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: license:0
- Info: FSF or OSI recognized license: MIT License: license:0
Reason
Found 12/30 approved changesets -- score normalized to 4
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/sindresorhus/npm-user/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/sindresorhus/npm-user/main.yml/main?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/main.yml:22
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 npmCommand dependencies pinned
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/main.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 12 are checked with a SAST tool
Score
3.8
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More