1.0.3 • Published 4 years ago

tshl v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

EQLayer Regex Replacer

EQLayer to regex

To install

yarn add tshl

Wrap

import EQL2RG from "tshl";

const EQ = new EQL2RG([{in:["abc","def"]}]);
EQ.html_wrap("xyz aabc yyy zzz","b"); // returns xyz a<b>abc</b> yyy zzz

Wrap HTML with custom class name

import EQL2RG from "tshl";

const EQ = new EQL2RG([{in:["abc","def"]}]);
EQ.html_wrap("xyz aabc yyy zzz","b","highlight"); // returns xyz a<b class="highlight">abc</b> yyy zzz

Turn off case sensitive

import EQL2RG from "tshl";

const EQ = new EQL2RG([{in:["abc","def"]}],false);
1.0.2

4 years ago

1.0.1

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago