1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 20:02:09 +02:00
tldr/pages/common/pretty-bytes.md
2021-08-15 19:59:09 +02:00

380 B

pretty-bytes

Convert bytes to a human-readable string. More information: https://github.com/sindresorhus/pretty-bytes-cli.

  • Convert numeric bytes value to a human-readable string:

pretty-bytes {{1337}}

  • Convert numeric bytes value from stdin to a human-readable string:

echo {{1337}} | pretty-bytes

  • Display help and usage information:

pretty-bytes --help