Skip to content

Command line tool for switching the casing of the XML tags in multiple files at once

License

Notifications You must be signed in to change notification settings

staszek998/xml-tag-caser

Repository files navigation

Cover image with the package logo and its name (xml-tag-caser)

Command line tool for switching the casing of the XML tags in multiple files at once.


Installation

npm install -g @staszek998/xml-tag-caser

💡 You can also utilize this package without the prior installing, by using the npx.

Usage

xml-tag-caser switch GLOB --from <value> --to <value> [--dry-run] [--omit-html-tags]

Arguments

  • GLOB - The glob pattern describing the files that are a subject for the casing switch.

Flags

Required

  • --from=<kebab|pascal> - Which casings should be replaced?
  • --to=<kebab|pascal> - What is the target casing?

Optional

  • --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.

Examples

xml-tag-caser switch "./**/*.vue" --from kebab --to pascal
xml-tag-caser switch "./**/*.vue" --from pascal --to kebab

Copyright © 2024 Stanisław Gregor

About

Command line tool for switching the casing of the XML tags in multiple files at once

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •