cacheinfo

Info about your JavaScript package manager cache sizes


Keywords
info, reporting, diagnostics
License
ISC
Install
npm install cacheinfo@1.0.6

Documentation

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