Gathering detailed insights and metrics for @visulima/find-cache-dir
Gathering detailed insights and metrics for @visulima/find-cache-dir
Gathering detailed insights and metrics for @visulima/find-cache-dir
Gathering detailed insights and metrics for @visulima/find-cache-dir
@ffras4vnpm/enim-recusandae-assumenda
<p align="center"> <a href="https://visulima.com"> <picture> <source media="(prefers-color-scheme: dark)" srcset=""> <img src="" height="128"> </picture> <h1 align="center">Visulima</h1> </a> </p>
@wemnyelezxnpm/nisi-sunt-vero
<p align="center"> <a href="https://visulima.com"> <picture> <source media="(prefers-color-scheme: dark)" srcset=""> <img src="" height="128"> </picture> <h1 align="center">Visulima</h1> </a> </p>
@micromint1npm/voluptate-incidunt-occaecati
<p align="center"> <a href="https://visulima.com"> <picture> <source media="(prefers-color-scheme: dark)" srcset=""> <img src="" height="128"> </picture> <h1 align="center">Visulima</h1> </a> </p>
Visulima is the next-gen JavaScript framework for JAMStack blogs, sites & apps.
npm install @visulima/find-cache-dir
Typescript
Module System
Min. Node Version
Node Version
NPM Version
74
Supply Chain
99.5
Quality
92.3
Maintenance
100
Vulnerability
99.6
License
@visulima/cerebro@1.1.46
Updated on Jun 04, 2025
@visulima/boxen@2.0.2
Updated on Jun 04, 2025
@visulima/pail@2.1.25
Updated on Jun 04, 2025
@visulima/api-platform@3.0.44
Updated on Jun 04, 2025
@visulima/jsdoc-open-api@2.0.81
Updated on Jun 04, 2025
@visulima/find-cache-dir@1.0.31
Updated on Jun 04, 2025
TypeScript (93.51%)
JavaScript (5.17%)
MDX (1.02%)
Handlebars (0.14%)
Shell (0.08%)
CSS (0.08%)
Total Downloads
45,509
Last Day
370
Last Week
1,558
Last Month
4,335
Last Year
45,509
MIT License
16 Stars
2,703 Commits
3 Forks
2 Watchers
17 Branches
2 Contributors
Updated on Jun 10, 2025
Minified
Minified + Gzipped
Latest Version
1.0.31
Package Id
@visulima/find-cache-dir@1.0.31
Unpacked Size
26.17 kB
Size
6.29 kB
File Count
9
NPM Version
10.9.2
Node Version
18.20.8
Published on
Jun 04, 2025
Cumulative downloads
Total Downloads
Last Day
162.4%
370
Compared to previous day
Last Week
101.6%
1,558
Compared to previous week
Last Month
114.4%
4,335
Compared to previous month
Last Year
0%
45,509
Compared to previous year
2
Finds the common standard cache directory, a commonjs and esm version of find-cache-dir.
[][typescript-url] [![npm-image]][npm-url] [![license-image]][license-url]
Daniel Bannert's open source work is supported by the community on GitHub Sponsors
1npm install @visulima/find-cache-dir
1yarn add @visulima/find-cache-dir
1pnpm add @visulima/find-cache-dir
1import { findCacheDir, findCacheDirSync } from "@visulima/find-cache-dir"; 2 3const cacheDir = await findCacheDir("my-app"); 4 5console.log(cacheDir); //=> '/Users/test/Library/node_mdules/.cache/my-app' 6 7const syncCacheDir = findCacheDirSync("my-app"); 8 9console.log(syncCacheDir); //=> '/Users/test/Library/node_mdules/.cache/my-app'
The same can be done for cjs:
1const { findCacheDir, findCacheDirSync } = require("@visulima/find-cache-dir"); 2 3const cacheDir = findCacheDir("my-app"); 4 5console.log(cacheDir); //=> '/Users/test/Library/node_mdules/.cache/my-app' 6 7const syncCacheDir = findCacheDirSync("my-app"); 8 9console.log(syncCacheDir); //=> '/Users/test/Library/node_mdules/.cache/my-app'
Required
Type: string
Should be the same as your project name in package.json
.
Type: object
Type: string
Default process.cwd()
The directory to start searching for a package.json
from.
Type: boolean
Default false
Create the directory synchronously before returning.
Type: boolean
Default false
Throw an error if a .cache
folder can't be found.
@visulima/find-cache-dir
, set the CACHE_DIR
environment variable to temporarily override the directory that is resolved.Libraries in this ecosystem make the best effort to track Node.js’ release schedule. Here’s a post on why we think this is important.
If you would like to help take a look at the list of issues and check our Contributing guidelines.
Note: please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
The visulima find-cache-dir is open-sourced software licensed under the [MIT][license-url]
[typescript-url]: https://www.typescriptlang.org/ "TypeScript" "typescript" [license-image]: https://img.shields.io/npm/l/@visulima/find-cache-dir?color=blueviolet&style=for-the-badge [license-url]: LICENSE.md "license" [npm-image]: https://img.shields.io/npm/v/@visulima/find-cache-dir/latest.svg?style=for-the-badge&logo=npm [npm-url]: https://www.npmjs.com/package/@visulima/find-cache-dir/v/latest "npm"
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
project has 4 contributing companies or organizations
Details
Reason
no dangerous workflow patterns detected
Reason
update tool detected
Details
Reason
license file detected
Details
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
SAST tool detected: CodeQL
Details
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Score
Last Scanned on 2025-06-17T07:32:48Z
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