0.0.2 • Published 3 years ago

@zkjs/hrf v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

hrf

hrf is a collection of refactoring and code discovery tools designed for use with HTML and HTML-like languages, with a twist of Unix philosophy.

hgrep

Like grep, but for HTML.

Search through a multitude of files using (simplified) CSS selectors.

See the documentation page for hgrep.

hawk

Like awk, but for HTML (sort of).

Find HTML elements using (simplified) CSS selectors and programmatically apply changes to them in any way you like, which makes large changes across your entire codebase a walk in the park. And there's no need to learn some arcane DSL - it's just JavaScript.

See the documentation page for hawk.

Simplified CSS selectors

Just plain old CSS selectors, but made super easy to type. No need for double quotes in attribute lists, inserting dots before each classname, or other pesky stuff.

See the documentation page for simplified CSS selectors.

Language support

  • Plain HTML - yes
  • Svelte - yes
  • JSX - no (but planned)
  • Vue - no (but planned)
  • Others - maybe! Please open an issue if you'd like support for your language.