pretty-bytes
Pretty-bytes is a command line tool and module that converts numbers into "pretty" human-readable strings. It is commonly used to format file sizes to a more user-friendly format. The tool supports both binary and metric units, such as bytes (B), kilobytes (KB), megabytes (MB), gigabytes (GB), terabytes (TB), and so on. It can be used in various scenarios, such as displaying file sizes in terminal output or converting data sizes for better readability. Pretty-bytes can handle extremely large or small values and automatically adjusts the unit based on the input number. The module is available on popular package managers, like npm, and can be easily installed and integrated into existing projects. It is written in JavaScript and can be used with Node.js. Pretty-bytes also provides options for customizing the formatting, rounding decimals, and adding colorized output. Overall, pretty-bytes simplifies the process of converting and displaying byte sizes in a visually appealing manner.
List of commands for pretty-bytes:
-
pretty-bytes:tldr:3ee94 pretty-bytes: Display help and usage information.$ pretty-bytes --helptry on your machineexplain this command
-
pretty-bytes:tldr:7f273 pretty-bytes: Convert numeric bytes value to a human-readable string.$ pretty-bytes ${1337}try on your machineexplain this command