Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

syntax-tree/hast-util-find-and-replace

Repository files navigation

hast-util-find-and-replace

hast utility to find and replace things.

Contents

  • What is this?
  • When should I use this?
  • Install
  • Use
  • API
    • defaultIgnore
    • findAndReplace(tree, list[, options])
    • Find
    • FindAndReplaceList
    • FindAndReplaceTuple
    • Options
    • RegExpMatchObject
    • Replace
    • ReplaceFunction
  • Types
  • Compatibility
  • Security
  • Related
  • Contribute
  • License

What is this?

This package is a utility that lets you find patterns (string, RegExp) in text and replace them with nodes (such as elements). It's aware of HTML (such as ignoring