tldr/pages/common/pretty-bytes.md

17 lines
360 B
Markdown
Raw Normal View History

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