tagsearch
Search a string with a set of tags.
Installation
$ npm i tagsearch -S
Usage
t.matches(string)
matches
is not case-sensitive and finds all matches within a string.
const t = ;const matches = t; todeep;
t.highlight(string[, wrappingFunction])
highlight
wraps every match in strong
-tags by default:
const t = ;const h = t; to;
You can specify your own wrapping function:
const t = ;const h = t; to;