Gathering detailed insights and metrics for appdirsjs
Gathering detailed insights and metrics for appdirsjs
Gathering detailed insights and metrics for appdirsjs
Gathering detailed insights and metrics for appdirsjs
A node.js library to get paths to directories to store configs, caches and data according to OS standarts.
npm install appdirsjs
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
5 Stars
40 Commits
5 Forks
2 Watching
2 Branches
4 Contributors
Updated on 08 Apr 2024
Minified
Minified + Gzipped
TypeScript (94.74%)
JavaScript (4%)
Makefile (1.27%)
Cumulative downloads
Total Downloads
Last day
-6.3%
322,824
Compared to previous day
Last week
0.3%
1,692,390
Compared to previous week
Last month
-2.3%
7,381,317
Compared to previous month
Last year
41.5%
80,396,423
Compared to previous year
A node.js library to get paths to directories to store configs, caches and data according to OS standards.
1npm install appdirsjs
or
1yarn install appdirsjs
if you're using yarn.
1import appDirs from "appdirsjs"; 2 3const dirs = appDirs({ appName: "expo" }); 4 5console.log(dirs.cache); 6// /home/user/.cache/expo on Linux 7// /Users/User/Library/Caches/expo on MacOS 8// C:\Users\User\AppData\Local\Temp\expo on Windows 9 10console.log(dirs.config); 11// /home/user/.config/expo on Linux 12// /Users/User/Library/Preferences/expo on MacOS 13// C:\Users\User\AppData\Roaming\expo 14 15console.log(dirs.data); 16// /home/user/.local/share/expo on Linux 17// /Users/User/Library/Application Support/expo on MacOS 18// C:\Users\User\AppData\Local\expo
Then switching from old-style dotfile directory,
such as ~/.myapp
to new, like ~/.config/myapp
,
you can pass legacyPath
parameter
to keep using old directory if it exists:
1import * as path from "path"; 2import appDirs from "appdirsjs"; 3 4const dirs = appDirs({ 5 appName: "expo", 6 // Notice usage of full path 7 legacyPath: path.join(os.homedir(), ".expo"), 8}); 9 10console.log(dirs.config); 11// /home/user/.expo
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
Reason
Found 3/27 approved changesets -- score normalized to 1
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
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
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-25
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