npm i barjste
or download the source yourself.
$(element).barjste(action, properties)
element - the DOM element you wish to modify.
action - "highlight" to highlight the text, "unhighlight" to hide the text, "redact" to redact the text.
properties - {"color", color}, where color can be yellow, blue, red, green, pink, white, and black.