Gathering detailed insights and metrics for v8-compile-cache-lib
Gathering detailed insights and metrics for v8-compile-cache-lib
Gathering detailed insights and metrics for v8-compile-cache-lib
Gathering detailed insights and metrics for v8-compile-cache-lib
npm install v8-compile-cache-lib
Typescript
Module System
Node Version
NPM Version
JavaScript (98.46%)
Shell (1.54%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
13 Stars
111 Commits
1 Watchers
3 Branches
8 Contributors
Updated on Jul 08, 2025
Latest Version
3.0.1
Package Id
v8-compile-cache-lib@3.0.1
Unpacked Size
17.74 kB
Size
6.24 kB
File Count
6
NPM Version
6.14.15
Node Version
17.3.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
9
Fork of
v8-compile-cache
exposed as an API for programmatic usage in other libraries and tools.
v8-compile-cache-lib
attaches a require
hook to use V8's code cache to speed up instantiation time. The "code cache" is the work of parsing and compiling done by V8.
The ability to tap into V8 to produce/consume this cache was introduced in Node v5.7.0.
1$ npm install --save v8-compile-cache-lib
1require('v8-compile-cache-lib').install();
.install()
in Node <5.7.0 is a noop – but you need at least Node 4.0.0 to support the ES2015 syntax used by v8-compile-cache-lib
.
Set the environment variable DISABLE_V8_COMPILE_CACHE=1
to disable the cache.
Cache directory is defined by environment variable V8_COMPILE_CACHE_CACHE_DIR
or defaults to <os.tmpdir()>/v8-compile-cache-<V8_VERSION>
.
Cache files are suffixed .BLOB
and .MAP
corresponding to the entry module that required v8-compile-cache-lib
. The cache is entry module specific because it is faster to load the entire code cache into memory at once, than it is to read it from disk on a file-by-file basis.
See https://github.com/cspotcode/v8-compile-cache-lib/tree/master/bench.
Load Times:
Module | Without Cache | With Cache |
---|---|---|
babel-core | 218ms | 185ms |
yarn | 153ms | 113ms |
yarn (bundled) | 228ms | 105ms |
^ Includes the overhead of loading the cache itself.
v8-compile-cache
from which this library is forked.FileSystemBlobStore
and NativeCompileCache
are based on Atom's implementation of their v8 compile cache:
mkdirpSync
is based on:
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/27 approved changesets -- 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 2025-07-07
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