accent-folding

1.0.3 • Public • Published

accent-folding

It wraps string fragment in <b> html tag by default.

You can use custom folding tag by adding the name of your tag as third parameter (2nd example).

install with npm:

npm install accent-folding

Example code:


accentFoldedHighlight("Fulanilo López", "lo"); // --> "Fulanilo pez"

accentFoldedHighlight("Fulanilo López", "lo", "strong"); // --> "Fulanilo pez"

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i accent-folding

    Weekly Downloads

    67

    Version

    1.0.3

    License

    MIT

    Last publish

    Collaborators

    • rz87