We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I would like to do something like the following operations on an HTML file. Can you think of a way to do this?
[$]> echo "$(htmlq ".html.head.title = \"React App Title\"" $react_project_dir/index.html)" > $react_project_dir/index.html
[$]> echo "$(htmlq ".html.head.meta[name=description].content = \"React App Description\"" $react_project_dir/index.html)" > $react_project_dir/index.html
Current Options:
Similar Discussions:
I was able to do the following withyq/xq but it converts HTML to XML.
yq/xq
[$]> xq -x '.html.head.title = "Updated Title" | (.html.head.meta[] | select(."@name" == "description") | ."@content") |= "Updated Description"' index.html
The text was updated successfully, but these errors were encountered:
Also interested in this use case. Being able to update a node, statically or via a command.
Sorry, something went wrong.
No branches or pull requests
I would like to do something like the following operations on an HTML file. Can you think of a way to do this?
[$]> echo "$(htmlq ".html.head.title = \"React App Title\"" $react_project_dir/index.html)" > $react_project_dir/index.html
[$]> echo "$(htmlq ".html.head.meta[name=description].content = \"React App Description\"" $react_project_dir/index.html)" > $react_project_dir/index.html
Current Options:
Similar Discussions:
I was able to do the following with
yq/xq
but it converts HTML to XML.[$]> xq -x '.html.head.title = "Updated Title" | (.html.head.meta[] | select(."@name" == "description") | ."@content") |= "Updated Description"' index.html
The text was updated successfully, but these errors were encountered: