https://github.com/nickserv/cacheinfo
Info about your JavaScript package manager cache sizes
https://github.com/nickserv/cacheinfo
diagnostics info reporting
Last synced: over 1 year ago
JSON representation
Info about your JavaScript package manager cache sizes
- Host: GitHub
- URL: https://github.com/nickserv/cacheinfo
- Owner: nickserv
- Created: 2022-10-04T19:45:03.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-07T00:49:50.000Z (over 2 years ago)
- Last Synced: 2025-04-06T01:19:46.859Z (over 1 year ago)
- Topics: diagnostics, info, reporting
- Language: TypeScript
- Homepage: https://npm.im/cacheinfo
- Size: 28.3 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `cacheinfo`
Info about your JavaScript package manager cache sizes
## Usage
### CLI
```sh
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
```ts
import cacheinfo from "cacheinfo";
for await (const [name, size] of cacheinfo()) {
// ...
}
```