Gathering detailed insights and metrics for passwd-user
Gathering detailed insights and metrics for passwd-user
Gathering detailed insights and metrics for passwd-user
Gathering detailed insights and metrics for passwd-user
npm install passwd-user
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
27 Stars
41 Commits
6 Forks
6 Watching
1 Branches
5 Contributors
Updated on 28 Nov 2024
JavaScript (80.29%)
TypeScript (19.71%)
Cumulative downloads
Total Downloads
Last day
-16.9%
44,413
Compared to previous day
Last week
-0.4%
263,866
Compared to previous week
Last month
27.2%
1,143,028
Compared to previous month
Last year
54.1%
9,079,725
Compared to previous year
Get the passwd user entry from a username or user identifier (UID)
Works on macOS and Linux. See user-info
if you need cross-platform support.
1npm install passwd-user
1import {passwdUser} from 'passwd-user'; 2 3console.log(await passwdUser('sindresorhus')); 4/* 5{ 6 username: 'sindresorhus', 7 password: '*', 8 userIdentifier: 501, 9 groupIdentifier: 20, 10 fullName: 'Sindre Sorhus', 11 homeDirectory: '/home/sindresorhus', 12 shell: '/bin/zsh' 13} 14*/ 15 16await passwdUser(501); 17console.log('Got entry for user 501'); 18 19const user = await passwdUser(); 20console.log(`Got entry for user ${user.userIdentifier}`);
Returns an object with:
username
password
userIdentifier
: UIDgroupIdentifier
: GIDfullName
: Name of userhomeDirectory
: Home directoryshell
: Default shellReturns a Promise<object>
with the user entry.
Returns an object
with the user entry.
Type: string
The username to look up.
Type: number
Default: process.getuid()
(The current user)
The user identifier (UID) to look up.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 3/27 approved changesets -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
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