xhtml-cli

1.0.2 • Public • Published

XHTML

HTML filter and sanitization cli tool

Install

  npm install -g xhtml-cli

Usage

  xhtml --help

help command

Filtering tags

  curl -s https://github.com | xhtml -s "meta[property]"
  curl -s https://github.com | xhtml -selector "meta[property]"

meta

Limiting depth output

  curl -s https://github.com | xhtml -s "strong" -d 0
  curl -s https://github.com | xhtml -selector "strong" -depth 0

meta

No color output

  curl -s https://github.com | xhtml -s "strong" -d 0 --no-color
  curl -s https://github.com | xhtml -selector "strong" -depth 0 --no-color

meta

Readme

Keywords

Package Sidebar

Install

npm i xhtml-cli

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

8.01 kB

Total Files

5

Last publish

Collaborators

  • 2fd