Installations
npm install pretty-bytes-cli
Developer
sindresorhus
Developer Guide
Module System
ESM
Min. Node Version
^14.18.0 || >=16.0.0
Typescript Support
No
Node Version
14.19.0
NPM Version
8.3.2
Statistics
68 Stars
8 Commits
4 Forks
8 Watching
1 Branches
2 Contributors
Updated on 07 May 2024
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
318,380
Last day
376.6%
367
Compared to previous day
Last week
247.9%
1,388
Compared to previous week
Last month
64.9%
2,368
Compared to previous month
Last year
-43.3%
28,041
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
pretty-bytes-cli
Convert bytes to a human readable string:
1337
→1.34 kB
Useful for displaying file sizes for humans.
Install
1npm install --global pretty-bytes-cli
Usage
$ pretty-bytes --help
Usage
$ pretty-bytes <number>
$ echo <number> | pretty-bytes
Example
$ pretty-bytes 1337
1.34 kB
Related
- pretty-bytes - API for this module
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
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 1/8 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
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/pretty-bytes-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/pretty-bytes-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
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
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
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 1 are checked with a SAST tool
Score
3.5
/10
Last Scanned on 2024-11-18
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