platformdirs
Advanced tools
Comparing version 4.3.6-rc1 to 4.3.6
{ | ||
"name": "platformdirs", | ||
"version": "4.3.6-rc1", | ||
"version": "4.3.6", | ||
"description": "📂 Unified interface to get platform-specific directories", | ||
@@ -16,3 +16,3 @@ "keywords": [ | ||
], | ||
"homepage": "https://www.jsdocs.io/package/platformdirs", | ||
"homepage": "https://jsdocs.io/package/platformdirs", | ||
"repository": { | ||
@@ -36,3 +36,5 @@ "type": "git", | ||
}, | ||
"files": ["dist"], | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
@@ -39,0 +41,0 @@ "build": "tsc --noCheck", |
@@ -57,5 +57,5 @@ # `platformdirs` for JavaScript | ||
import * as stream from "node:stream"; | ||
import * as platformdirs from "platformdirs"; | ||
import { userCacheDir } from "platformdirs"; | ||
const cacheDir = platformdirs.userCacheDir("awesome-app", "octocat", "1.2") | ||
const cacheDir = userCacheDir("awesome-app", "octocat", "1.2") | ||
const bigCSVPath = path.join(cacheDir, "big.csv"); | ||
@@ -70,2 +70,4 @@ if (!fs.existsSync(bigCSVPath)) { | ||
You can quickly dump all the directories for the current environment by running the included `platformdirs` CLI command. This is helpful for quickly determining what `dirs.userConfigDir` and friends return. | ||
```sh | ||
@@ -78,3 +80,3 @@ npx platformdirs | ||
``` | ||
TODO | ||
``` | ||
@@ -87,3 +89,3 @@ | ||
``` | ||
TODO | ||
``` | ||
@@ -90,0 +92,0 @@ |
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 16 instances in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
173
0
8677
3
0
2