Skip to content

Support for attribute wildcards

Latest
Compare
Choose a tag to compare
@danburzo danburzo released this 07 Jul 21:10

This release adds support for the attribute wildcard @* that can be used to extract all HTML attributes from an element:

echo "<a href='#' rel='noopener' target='_blank'>Click me</a>" | hred 'a @*'

[
  {
    "href": "#",
    "rel": "noopener",
    "target": "_blank"
  }
]