Converts camelCase names to kebab-case: backgroundColor → background-color, dryRun → dry-run. Lowercase words joined by hyphens are what CSS properties, HTML attributes, URL slugs and most command-line flags use.
It is most useful when moving between JavaScript and markup or the shell: a React inline style object back to a stylesheet, Vue/Angular props written in script to their template attribute form, or option names from a JS config to --long-flags.
String box.Result. If you change either dropdown, the address changes too, so the pair you use most can be bookmarked.backgroundColor: #fff;
borderRadius: 8px;
boxShadow: 0 1px 2px #0002;
--dryRun --outputDir distbackground-color: #fff;
border-radius: 8px;
box-shadow: 0 1px 2px #0002;
--dry-run --output-dir distProperty names from a React style object become real CSS property names, and the camelCase part of --dryRun is converted while the leading -- is kept. Values such as #fff and 8px are untouched.
boxShadow → box-shadow.-- or . in front of a name are preserved because only the camelCase word itself is replaced.grid2Columns → grid2-columns.When a component's style={{ ... }} grows too big and you move it into a .css or .module.css file, converting the property names saves rewriting marginTop, zIndex, textAlign by hand. You still need to add semicolons and drop the quotes around values.
Vue lets you declare itemCount in script but expects item-count when the template is written in plain HTML. Paste the prop list to get the attribute names.
A tool configured with { outputDir, dryRun } usually exposes --output-dir and --dry-run on the command line.
innerHTML becomes inner-html and getHTTPResponse becomes get-http-response. Two acronyms written back to back (parseXMLHTTPRequest) cannot be told apart and come out as parse-xmlhttp-request.WebkitTransform start with a capital, so they are not camelCase and stay unchanged; convert them separately.No. Only the identifiers change. A value like fontSize: 14 stays 14; add px yourself when moving to CSS.
For identifiers, yes: orderHistory becomes order-history. For free text with spaces or non-ASCII characters, use the string case converter instead, since this page only rewrites camelCase words.