A lightweight file metadata cache for detecting file changes between runs. Version 11 is the current stable release (2025), part of the Cacheable ecosystem. Uses checksums and configurable path handling to determine file modifications. Key differentiators: simple API, disk persistence via reconcile(), configurable working directory and path security, and full ESM/CommonJS support with TypeScript types.
npm install file-entry-cacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: create cache, detect changes, and persist to disk.
Use `const fileEntryCache = await import('file-entry-cache')` or upgrade to ESM.If using the default cache path, update code to handle new location. Ensure compatibility with v10 options.
To allow paths outside cwd, set `restrictAccessToCwd: false` in options.
Pass `{ useCheckSum: true }` in options when calling create().Use `cache.getFileDescriptor(path).setMeta(data)` and `.getMeta()` instead.
Change to `const fileEntryCache = await import('file-entry-cache');` or set `"type": "module"` in package.json.Use `import fileEntryCache from 'file-entry-cache'` (default import).
Use relative paths within cwd or set `restrictAccessToCwd: false` in options.
Ensure you call `fileEntryCache.create('cacheName')` before using the cache.No dependency data recorded yet.