1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/pretty-bytes.md

17 lines
382 B
Markdown
Raw Normal View History

2021-02-05 07:39:05 -05:00
# pretty-bytes
> Convert bytes to a human-readable string.
2021-02-05 07:39:05 -05:00
> More information: <https://github.com/sindresorhus/pretty-bytes-cli>.
- Convert numeric bytes value to a human-readable string:
2021-02-05 07:39:05 -05:00
`pretty-bytes {{1337}}`
- Convert numeric bytes value from `stdin` to a human-readable string:
2021-02-05 07:39:05 -05:00
`echo {{1337}} | pretty-bytes`
- Display help and usage information:
`pretty-bytes --help`