Command line tool for switching the casing of the XML tags in multiple files at once.
npm install -g @staszek998/xml-tag-caser
💡 You can also utilize this package without the prior installing, by using the
npx
.
xml-tag-caser switch GLOB --from <value> --to <value> [--dry-run] [--omit-html-tags]
-
GLOB
- The glob pattern describing the files that are a subject for the casing switch.
-
--from=<kebab|pascal>
- Which casings should be replaced? -
--to=<kebab|pascal>
- What is the target casing?
-
--dry-run
- Determines whether the script should perform a dry-run, logging the output to the console (instead of modifying the files). -
--omit-html-tags
- Determines whether the replacer function should omit the standard HTML tags and leave them as-is.
xml-tag-caser switch "./**/*.vue" --from kebab --to pascal
xml-tag-caser switch "./**/*.vue" --from pascal --to kebab
Copyright © 2024 Stanisław Gregor