v8-compile-cache-lib

JSON →
library 3.0.1 ·javascript
verified Jun 7, 2026

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).