1.0.6 • Published 3 years ago
cacheinfo v1.0.6
cacheinfo
Info about your JavaScript package manager cache sizes
Usage
CLI
npx cacheinfonpm ... MB
pnpm ... MB
yarn ... MB
berry ... MBAPI
cacheinfo is a function that returns a ReadableStream<[string, number]> with the name and size (in bytes) of each package manager cache
import cacheinfo from "cacheinfo"
for await (const [name, size] of cacheinfo()) {
// ...
}