Skip to content

Releases: danburzo/hred

v1.5.1

27 Sep 13:03
Compare
Choose a tag to compare

Fixes

  • Fixes a typo in parsing arguments of the form --option=value.

v1.5.0

06 Aug 14:50
Compare
Choose a tag to compare

Adds the -f <queryfile>, --file <queryfile> CLI option to read the query string from an external file instead of passing it as an operand. (#6)

Support for attribute wildcards

07 Jul 21:12
Compare
Choose a tag to compare

Upgraded to qsx@3.3.0, which 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"
  }
]

v1.3.0

09 Aug 09:28
Compare
Choose a tag to compare

Upgraded to qsx@3.2.0, see the release notes for new features.

v1.2.0

03 Aug 12:10
Compare
Choose a tag to compare

Adds the -x / --xml flag to parse the input as XML rather than HTML.

v1.1.6

29 Jul 17:54
Compare
Choose a tag to compare

Upgraded to qsx@v3.1.3.

v1.1.5

23 Jul 21:09
Compare
Choose a tag to compare

Feature: When using the -r flag and the result is a single string, return it unquoted.

v1.1.2

22 Jul 11:56
Compare
Choose a tag to compare

Uses minimist for more robust command-line argument parsing.

New features:

  • -V / --version and -h / --help options
  • -u / --url option to pass the original URL, so that DOM properties such as @.href or @.src resolve to an absolute value (#2)

v1.1.1

21 Jul 16:27
Compare
Choose a tag to compare

Upgraded to qsx@v3.1.1

v1.1.0

21 Jul 14:26
Compare
Choose a tag to compare

Adds the -c and -r flags. (Fixes #1)