toad-cache
npmv3.7.4TypeScriptLRU and FIFO caches for Client or Server
Safe to adopt
Yes — toad-cache scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 68 days ago. 2 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- AMaintenance: grade A, Excellent.
Last published 68 days ago. 2 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 50 KB installed.
- 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 toad-cache to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- node >=20
- Module format
- ESM + CommonJS
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the toad-cache README.
import { Lru, Fifo } from 'toad-cache'
const lruCache = new Lru(max, ttl = 0)
const fifoCache = new Fifo(max, ttl = 0)toad-cache vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| toad-cachethis page | 0 | 1 | MIT | 2 months ago |
| axios | 106.5M | 4 | MIT | 1 day ago |
| mysql2 | 10.5M | 3 | MIT | 1 day ago |
| isarray | 174.9M | 3 | MIT | 1 day ago |
| file-entry-cache | 134.5M | 1 | MIT | 1 day ago |
| open | 130.4M | 4 | MIT | 1 day ago |
Dependencies
Declared by toad-cache v3.7.4. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (9)
Used by
Popular packages that depend on toad-cache.
Relationship graph
Dependencies (left) and dependents (right) of toad-cache.
Frequently installed together
An HTTP/1.1 client, written from scratch for Node.js
Create HTTP error objects
An AST-based pattern checker for JavaScript.
Manipulate the HTTP Vary header
Really Fast Deep Clone
A small utility for creating warnings and emitting them.
Build and manage the fast-json-stringify instances for the fastify framework
Fake HTTP injection library
Build and manage the AJV instances for the fastify framework
A small utility, used by Fastify itself, for generating consistent error objects across your codebase and plugins.
Determine the address of a proxied request
A noop logger that conforms to the Log4j interface for modules to stub out internal logging
Release history
2 releases in the last two years, typically about 0 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 3.7.4latest | 2 months ago | 50 KB | MIT |
| 3.7.1 | 3 months ago | 48 KB | MIT |
| 3.7.0 | 2 years ago | 48 KB | MIT |
| 3.6.0 | 2 years ago | 48 KB | MIT |
| 3.5.0 | 2 years ago | 46 KB | MIT |
| 3.4.1 | 2 years ago | 44 KB | MIT |
| 3.4.0 | 2 years ago | 44 KB | MIT |
| 3.3.1 | 2 years ago | 43 KB | MIT |
| 3.3.1-RC7 | 2 years ago | 43 KB | MIT |
| 3.3.1-RC6 | 2 years ago | 43 KB | MIT |
| 3.3.1-RC5 | 2 years ago | 43 KB | MIT |
| 3.3.1-RC4 | 2 years ago | 43 KB | MIT |
| 3.3.1-RC3 | 2 years ago | 40 KB | MIT |
| 3.3.1-RC2 | 2 years ago | 40 KB | MIT |
| 3.3.1-RC1 | 2 years ago | 40 KB | MIT |
Overview
toad-cache is an npm package that lRU and FIFO caches for Client or Server. It has 1 known dependents in the graph. The latest version is 3.7.4, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need lRU and FIFO caches for Client or Server and value a focused 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
- 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
Frequently asked questions
Should I use toad-cache?
Yes — toad-cache scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 68 days ago. 2 releases in the last 2 years.
How do I install toad-cache?
Run `npm install toad-cache` to add toad-cache to your npm project.
What license is toad-cache released under?
toad-cache is distributed under the MIT license.
How popular is toad-cache?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on toad-cache.
Is toad-cache still maintained?
The most recent release of toad-cache (v3.7.4) was published 2 months ago.
Does toad-cache run install scripts?
No. toad-cache does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.