randomart-generator
Generate OpenSSH style "randomart" images based on any data.
This is a shameless, cli port of slapresta/randomart, which is itself a shameless, slightly modified port of calmh/randomart to JS.
Example
randomart = ; console;
.+.
o.
.. +
Eo =
S + .
o B . .
B o..
*...
.o+...
Documentation
The function returned by require('randomart')
optionally accepts two arguments: the first one, data
, is expected to be an array of integers between 0 and 255, while the second one, options
, has the following structure, in which all parent elements are optional:
Credits
Thanks to @calmh for their hard work! May the opensource gods reward them with seventy-two non-terrible window managers.