options is an an object with the same options as repl.REPLServer.
Additionally, it's possible to pass an additional colorize property to the options object:
{ colorize: function (str) { // str is the the string in input. // the function should return the string that has been colorized to output in the REPL. }}
In order to highlighting matching pairs of brackets, a colorizeMatchingBracket
is also available.
Credits
Pretty repl is inspired and includes code fragments from: