https://github.com/gregoryv/ud
Utility for replacing elements by id within html files.
https://github.com/gregoryv/ud
go golang html terminal
Last synced: about 2 months ago
JSON representation
Utility for replacing elements by id within html files.
- Host: GitHub
- URL: https://github.com/gregoryv/ud
- Owner: gregoryv
- License: mit
- Created: 2019-05-25T12:16:05.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2025-03-20T06:40:35.000Z (over 1 year ago)
- Last Synced: 2025-03-20T07:36:55.963Z (over 1 year ago)
- Topics: go, golang, html, terminal
- Language: Go
- Homepage:
- Size: 43.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
ARCHIVED! moved to https://sogvin.com/ud
[ud](https://godoc.org/github.com/gregoryv/ud) - Utility for replacing elements by id within html files.
## Quick start
go get -u github.com/gregoryv/ud
Replace an element by id
echo "new thing" | ud -w -i "someid" -html index.html
which is same as
echo 'new thing' | ud -w -html index.html
Note! when `-i` flag is not given `-c` has no effect, it will always
replace the identified element.
Replace content of element by id use the `-c` flag
echo "new thing" | ud -w -c -i "someid" -html index.html
## Primary usecase
The primary reason for this tool was to simply generate and update
image maps within html when working with graphviz documents
dot -Tcmapx somegraph.dot | ud -w -html index.html
