{"library":"hast-util-find-and-replace","type":"library","category":null,"description":"The `hast-util-find-and-replace` package is a utility within the unifiedjs ecosystem designed to efficiently find and replace patterns (strings or regular expressions) within a HAST (HTML Abstract Syntax Tree). It operates by traversing the tree in a preorder fashion and applying replacements specifically within `Text` nodes. A key feature is its awareness of HTML structure, allowing it to ignore certain tags like `<script>`, `<style>`, `<iframe>`, `<img>`, and `<a>` by default, preventing unintended modifications. The current stable version is 5.0.1. The package maintains an active release cadence, with frequent patch and minor updates, and significant breaking changes between major versions. Its primary differentiator is its tight integration with HAST, offering a robust and context-aware solution for HTML tree manipulation.","language":"javascript","status":"active","version":"5.0.1","tags":["javascript","unist","hast","hast-util","util","utility","html","find","replace","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install hast-util-find-and-replace","imports":["import { findAndReplace } from 'hast-util-find-and-replace'","import { defaultIgnore } from 'hast-util-find-and-replace'","import type { FindAndReplaceList } from 'hast-util-find-and-replace'"]},{"cmd":"yarn add hast-util-find-and-replace","imports":[]},{"cmd":"pnpm add hast-util-find-and-replace","imports":[]}],"homepage":null,"github":"https://github.com/syntax-tree/hast-util-find-and-replace","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/hast-util-find-and-replace","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/hast-util-find-and-replace/compatibility"}}