{"library":"heti-findandreplacedomtext","type":"library","category":null,"description":"This utility, `heti-findandreplacedomtext`, is a fork of the original `padolsey/findAndReplaceDOMText` library. Its core function is to search for regular expression matches within a given DOM node and subsequently replace or wrap each match with a specified node or piece of text. A key differentiator is its robust handling of matches that span across multiple DOM nodes, ensuring that all fragmented portions of a match are correctly processed and modified. The `heti-` fork specifically introduced an `offset` option to address and fix issues related to browser support for regex lookbehind, enhancing cross-browser compatibility. The package's current stable version, 0.5.0, was published over six years ago, indicating that active development has ceased and the package is largely unmaintained. It is primarily used for client-side DOM manipulation tasks without notable external runtime dependencies. For TypeScript users, community-maintained type definitions (`@types/findandreplacedomtext`) are available.","language":"javascript","status":"abandoned","version":"0.5.0","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install heti-findandreplacedomtext","imports":["import findAndReplaceDOMText from 'heti-findandreplacedomtext';","<!-- In HTML: --><script src=\"path/to/findAndReplaceDOMText.js\"></script>\n<script>\n  findAndReplaceDOMText(document.body, { find: /foo/, wrap: 'span' });\n</script>","import findAndReplaceDOMText from 'heti-findandreplacedomtext';\n// Ensure @types/findandreplacedomtext is installed for type support\n// npm install --save-dev @types/findandreplacedomtext"]},{"cmd":"yarn add heti-findandreplacedomtext","imports":[]},{"cmd":"pnpm add heti-findandreplacedomtext","imports":[]}],"homepage":null,"github":"https://github.com/sivan/findAndReplaceDOMText","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/heti-findandreplacedomtext","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/heti-findandreplacedomtext/compatibility"}}