2021-02-05 12:39:05 +00:00
|
|
|
# pretty-bytes
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
> Convert bytes to a human-readable string.
|
2021-02-05 12:39:05 +00:00
|
|
|
> More information: <https://github.com/sindresorhus/pretty-bytes-cli>.
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Convert numeric bytes value to a human-readable string:
|
2021-02-05 12:39:05 +00:00
|
|
|
|
|
|
|
`pretty-bytes {{1337}}`
|
|
|
|
|
2022-12-04 07:53:34 +00:00
|
|
|
- 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 and usage information:
|
|
|
|
|
|
|
|
`pretty-bytes --help`
|