nickserv/cacheinfo

Info about your JavaScript package manager cache sizes

★ 2Forks 1TypeScriptGitHub ↗Compare

Project website ↗

diagnosticsinforeporting

README

cacheinfo

Info about your JavaScript package manager cache sizes

Usage

CLI

npx cacheinfo
bower ... MB
bun ... MB
corepack ... MB
deno ... MB
npm ... MB
pnpm ... MB
yarn classic ... MB
yarn modern ... MB

API

cacheinfo is a function that returns a ReadableStream<[name: string, size: number]> with the name and size (in bytes) of each package manager cache

import cacheinfo from "cacheinfo";

for await (const [name, size] of cacheinfo()) {
	// ...
}

Contributors

nickservawareness481

Issues