1.0.6 • Published 1 year ago
cacheinfo v1.0.6
cacheinfo
Info about your JavaScript package manager cache sizes
Usage
CLI
npx cacheinfo
npm ... MB
pnpm ... MB
yarn ... MB
berry ... MB
API
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()) {
// ...
}