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.
npm install @zkjs/hrf -g
Like
grep
, but for HTML.
Search through a multitude of files using (simplified) CSS selectors.
See the documentation page for hgrep
.
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
.
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.