Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

global-cache-dir

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

global-cache-dir

Get the global cache directory

  • 6.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
137K
increased by3.5%
Maintainers
1
Weekly downloads
 
Created

What is global-cache-dir?

The global-cache-dir npm package provides a way to get the path to a global cache directory. This can be useful for storing and retrieving cached data that is shared across multiple projects or tools.

What are global-cache-dir's main functionalities?

Get Global Cache Directory

This feature allows you to get the path to a global cache directory for your application. The directory is created if it does not already exist. The code sample demonstrates how to use the global-cache-dir package to get the cache directory for an application named 'my-app'.

const globalCacheDir = require('global-cache-dir');

(async () => {
  const cacheDir = await globalCacheDir('my-app');
  console.log(cacheDir);
})();

Other packages similar to global-cache-dir

Keywords

FAQs

Package last updated on 28 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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