New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

platformdirs

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

platformdirs - npm Package Compare versions

Comparing version 4.3.6-rc1 to 4.3.6

8

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc