printable-ascii v2.4.0
New Features
--compact
The --compact
option only prints the ASCII characters and omits newlines. When combined with --json
it puts a JSON array with only the characters.
$ printable-ascii --binary-digits
0
1
$ printable-ascii --binary-digits --compact
01%
$ printable-ascii --binary-digits --json
[{"character":"0"},{"character":"1"}]
$ printable-ascii --binary-digits --json --compact
["0","1"]
This can be used for all sorts of fun output. Like random HEX colors
$ printable-ascii --hex-digits --random 6 --compact
FADD5A%
$ printable-ascii --hex-digits --random 6 --compact
341349%
$ printable-ascii --hex-digits --random 6 --compact
B033A5%