Dirt Simple File Cache

JSON →
library 0.4.0 ·javascript
verified Jun 7, 2026

A lightweight file caching library that uses file modification times (mtime) to determine cache staleness. Current stable version is 0.4.0, released occasionally with minimal maintenance. It provides both persistent file-based caching and optional in-memory caching. Differentiators: dirt-simple API with just init, add, get, and clear methods; uses OS temp directory for persistence; TypeScript typings included. Ideal for simple build tool caches or any scenario where fast, zero-config file caching is needed.