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
1,155,782,068
Last Day
305,723
Last Week
1,390,902
Last Month
6,898,778
Last Year
98,952,594
30 Stars
13 Commits
4 Forks
8 Watching
1 Branches
2 Contributors
Minified
Minified + Gzipped
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
Publised On
16 Apr 2021
Cumulative downloads
Total Downloads
Last day
-3.3%
305,723
Compared to previous day
Last week
-16.6%
1,390,902
Compared to previous week
Last month
-1.6%
6,898,778
Compared to previous month
Last year
-7.4%
98,952,594
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 dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
security policy file detected
Details
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/13 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
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-01-20
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