Skip to content

nickmccurdy/cacheinfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()) {
	// ...
}