Skip to content

printable-ascii v2.4.0

Compare
Choose a tag to compare
@sdball sdball released this 11 Aug 01:14
· 40 commits to main since this release

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%