Fork of v8-compile-cache exposing an API for programmatic usage. Current stable version is 3.0.1. It installs a require hook that uses V8's code cache to speed up module compilation, reducing instantiation time by 20-50% in benchmarks. Key differentiators: provides an install() function instead of requiring --require flag, supports custom cache directory via environment variable, and can be disabled. Requires Node >=4.0.0 (module uses ES2015).
npm install v8-compile-cache-libNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to install the V8 compile cache hook in an entry module.
Upgrade Node to at least 5.7.0 or accept the noop
Ensure the same entry module is used each time to benefit from caching
Set variable at process start, e.g., process.env.DISABLE_V8_COMPILE_CACHE = '1'
Run: npm install v8-compile-cache-lib
Use: const install = require('v8-compile-cache-lib'); install();Use require instead of import: const install = require('v8-compile-cache-lib')No dependency data recorded yet.