textoverlay
TypeScript icon, indicating that this package has built-in type declarations

0.3.2 • Public • Published

textoverlay

Simple decorator for textarea elements.

Demo

new Textoverlay(document.getElementById("textarea"), [
  {
    match: /\B@\w+/g,
    css: { "background-color": "#d8dfea" }
  },
  {
    match: /e\w{8}d/g,
    css: { "background-color": "#cc9393" }
  }
]);

Live demo

Installation

npm install textoverlay

License

Textoverlay is released under the MIT License.

Readme

Keywords

none

Package Sidebar

Install

npm i textoverlay

Weekly Downloads

241

Version

0.3.2

License

MIT

Unpacked Size

781 kB

Total Files

31

Last publish

Collaborators

  • glebm
  • yuku-t