2021-02-05 07:39:05 -05:00
|
|
|
# pretty-bytes
|
|
|
|
|
2021-08-15 19:59:09 +02:00
|
|
|
> Convert bytes to a human-readable string.
|
2021-02-05 07:39:05 -05:00
|
|
|
> More information: <https://github.com/sindresorhus/pretty-bytes-cli>.
|
|
|
|
|
2021-08-15 19:59:09 +02:00
|
|
|
- Convert numeric bytes value to a human-readable string:
|
2021-02-05 07:39:05 -05:00
|
|
|
|
|
|
|
`pretty-bytes {{1337}}`
|
|
|
|
|
2022-12-04 08:53:34 +01:00
|
|
|
- Convert numeric bytes value from `stdin` to a human-readable string:
|
2021-02-05 07:39:05 -05:00
|
|
|
|
|
|
|
`echo {{1337}} | pretty-bytes`
|
|
|
|
|
2024-01-30 01:55:24 -03:00
|
|
|
- Display help:
|
2021-02-05 07:39:05 -05:00
|
|
|
|
|
|
|
`pretty-bytes --help`
|