</>PackageGraphPackageGraph

file-entry-cache

npmv11.1.5TypeScript

A lightweight cache for file metadata, ideal for processes that work on a specific set of files and only need to reprocess files that have changed since the last run

Safe to adopt

Yes — file-entry-cache scores well across adoption, maintenance, weight, supply chain, and licensing. 134.5M downloads per week and 1 known dependents. Last published 74 days ago. 24 releases in the last 2 years.

  • AAdoption: grade A, Excellent.

    134.5M downloads per week and 1 known dependents.

  • AMaintenance: grade A, Excellent.

    Last published 74 days ago. 24 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Pulls in 1 transitive package, about 87 KB installed (at least — some of the tree is still being crawled).

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding file-entry-cache to a project.

1
Direct dependencies

Runtime packages this one declares itself.

1
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

87 KB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.

Compatibility

Node.js
No constraint declared
Module format
ESM + CommonJS
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the file-entry-cache README.

javascriptFull README ↗
import fileEntryCache from 'file-entry-cache';
const cache = fileEntryCache.create('cache1');

// Using relative paths
let fileDescriptor = cache.getFileDescriptor('./src/file.txt');
console.log(fileDescriptor.changed); // true as it is the first time
console.log(fileDescriptor.key); // './src/file.txt' (stored as provided)

// Repeated calls keep reporting `changed: true` until you persist the state
// with reconcile(); only then does the file become the cached baseline.
cache.reconcile();

fileDescriptor = cache.getFileDescriptor('./src/file.txt');
console.log(fileDescriptor.changed); // false as it has not changed since reconcile()
Example truncated — see the full README.

file-entry-cache vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
file-entry-cachethis page134.5M1MIT2 months ago
memoize-one32.7M3MIT1 day ago
make-fetch-happen22.8M1ISC1 day ago
env-paths02MIT1 day ago
define-lazy-prop01MIT1 day ago
nocache01MIT1 day ago

Dependencies

Declared by file-entry-cache v11.1.5. Runtime dependencies are installed with the package; dev dependencies are not.

Runtime (1)

flat-cache ^6.1.23

Dev (3)

pino ^10.3.1tsdown ^0.22.0typescript ^5.9.3

Used by

Popular packages that depend on file-entry-cache.

Relationship graph

Dependencies (left) and dependents (right) of file-entry-cache.

eslintfile-entry-cache
file-entry-cache dependencies dependents

Frequently installed together

jitinpm

Runtime typescript and ESM support for Node.js

0/wk15 dependentsMITTS
eslint-visitor-keysnpm

Constants and utilities about visitor keys to traverse AST.

340.8M/wk4 dependentsApache-2.0TS
escape-string-regexpnpm

Escape RegExp special characters

316.5M/wk8 dependentsMIT
@types/estreenpm

TypeScript definitions for estree

152.1M/wk12 dependentsMITTS
eslintnpm

An AST-based pattern checker for JavaScript.

138.4M/wk279 dependentsMITTS
is-globnpm

Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet

137.4M/wk3 dependentsMIT
prettiernpm

Prettier is an opinionated code formatter

114.2M/wk159 dependentsMITTS
@eslint/config-helpersnpm

Helper utilities for creating ESLint configuration

96M/wk1 dependentsApache-2.0TS
esprimanpm

ECMAScript parsing infrastructure for multipurpose analysis

77.6M/wk5 dependentsBSD-2-Clause
json-stable-stringify-without-jsonifynpm

deterministic JSON.stringify() with custom sorting to get deterministic hashes from stringified results, with no public domain dependencies

72.1M/wk1 dependentsMIT
webpacknpm

Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.

49.8M/wk29 dependentsMITTS
cheerionpm

The fast, flexible & elegant library for parsing and manipulating HTML and XML.

24.1M/wk5 dependentsMITTS

Release history

19 releases in the last two years, typically about 32 days apart.

Recent versions of file-entry-cache
VersionPublishedSizeLicense
11.1.5latest2 months ago87 KBMIT
11.1.34 months ago85 KBMIT
11.1.27 months ago85 KBMIT
11.1.19 months ago85 KBMIT
11.1.011 months ago64 KBMIT
11.0.011 months ago63 KBMIT
11.0.0-beta.511 months ago59 KBMIT
11.0.0-beta.411 months ago57 KBMIT
11.0.0-beta.311 months ago68 KBMIT
11.0.0-beta.211 months ago70 KBMIT
11.0.0-beta.111 months ago50 KBMIT
10.1.41 year ago55 KBMIT
10.1.31 year ago55 KBMIT
10.1.11 year ago55 KBMIT
10.1.01 year ago55 KBMIT

Overview

file-entry-cache is an npm package that a lightweight cache for file metadata, ideal for processes that work on a specific set of files and only need to reprocess files that have changed since the last run. It is extremely widely used, with about 134.5M downloads per week and 1 known dependents in the graph. The latest version is 11.1.5, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need a lightweight cache for file metadata, ideal for processes that work on a specific set of files and only need to reprocess files that have changed since the last run and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (134.5M weekly downloads).
  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use file-entry-cache?

Yes — file-entry-cache scores well across adoption, maintenance, weight, supply chain, and licensing. 134.5M downloads per week and 1 known dependents. Last published 74 days ago. 24 releases in the last 2 years.

How do I install file-entry-cache?

Run `npm install file-entry-cache` to add file-entry-cache to your npm project.

How many dependencies does file-entry-cache have?

file-entry-cache declares 4 direct dependencies and pulls in 1 packages in total once its runtime tree is resolved totalling about 87 KB on disk.

What license is file-entry-cache released under?

file-entry-cache is distributed under the MIT license.

How popular is file-entry-cache?

file-entry-cache has approximately 134,452,990 downloads per week and 1 known dependent packages.

Is file-entry-cache still maintained?

The most recent release of file-entry-cache (v11.1.5) was published 2 months ago.

Does file-entry-cache run install scripts?

No. file-entry-cache does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.