Installations
npm install gzip-size-cli
Developer Guide
Typescript
No
Module System
ESM
Min. Node Version
>=12
Node Version
17.0.1
NPM Version
8.1.0
Score
69.7
Supply Chain
72.5
Quality
74.6
Maintenance
100
Vulnerability
99.6
License
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
sindresorhus
Download Statistics
Total Downloads
1,251,661
Last Day
894
Last Week
2,573
Last Month
18,864
Last Year
171,794
GitHub Statistics
189 Stars
24 Commits
10 Forks
7 Watching
1 Branches
4 Contributors
Sponsor this package
Package Meta Information
Latest Version
5.1.0
Package Id
gzip-size-cli@5.1.0
Unpacked Size
3.97 kB
Size
1.95 kB
File Count
4
NPM Version
8.1.0
Node Version
17.0.1
Publised On
23 Nov 2021
Total Downloads
Cumulative downloads
Total Downloads
1,251,661
Last day
27%
894
Compared to previous day
Last week
-34.5%
2,573
Compared to previous week
Last month
57.7%
18,864
Compared to previous month
Last year
-1%
171,794
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
gzip-size-cli
Get the gzipped size of a file or stdin
Install
1npm install --global gzip-size-cli
Usage
$ gzip-size --help
Usage
$ gzip-size <file>
$ cat <file> | gzip-size
Options
--level Compression level [0-9] (Default: 9)
--raw Display value in bytes
--include-original Include original size
Examples
$ gzip-size unicorn.png
192 kB
$ gzip-size unicorn.png --raw
192256
$ gzip-size unicorn.png --include-original
392 kB → 192 kB
Related
- gzip-size - API for this module
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: license:0
- Info: FSF or OSI recognized license: MIT License: license:0
Reason
Found 5/24 approved changesets -- score normalized to 2
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/sindresorhus/gzip-size-cli/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/sindresorhus/gzip-size-cli/main.yml/main?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/main.yml:22
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 npmCommand dependencies pinned
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/main.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 5 are checked with a SAST tool
Score
3.6
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More