Gathering detailed insights and metrics for home-or-tmp
Gathering detailed insights and metrics for home-or-tmp
Gathering detailed insights and metrics for home-or-tmp
Gathering detailed insights and metrics for home-or-tmp
Get the user home directory with fallback to the system temp directory
npm install home-or-tmp
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.5
Supply Chain
61.2
Quality
75.3
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
30 Stars
13 Commits
4 Forks
7 Watchers
1 Branches
2 Contributors
Updated on Jan 07, 2025
Latest Version
4.0.0
Package Id
home-or-tmp@4.0.0
Size
1.67 kB
NPM Version
6.14.10
Node Version
12.22.1
Published on
Apr 16, 2021
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Get the user home directory with fallback to the system temp directory
Useful in cases where the home directory either isn't set or doesn't exist.
$ npm install home-or-tmp
1import homeOrTemp from 'home-or-tmp'; 2 3console.log(homeOrTemp); 4//=> '/Users/sindresorhus' 5 6// And if there is no home directory: 7 8console.log(homeOrTemp); 9//=> '/var/folders/m3/5574nnhn0yj488ccryqr7tc80000gn/T'
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
Found 1/13 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
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 2025-07-07
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