1.0.3 • Published 14 days ago

@staszek998/xml-tag-caser v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
14 days ago

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