@showlotus/prettier-plugin-kebab-to-camel weekly downloads statistics
By showlotus · npm · Prettier plugins
A prettier plugin to convet attribute style from kebab-case to camelCase in typescript and javascript files by the provided attributes list.
@showlotus/prettier-plugin-kebab-to-camel has 1 recorded weekly downloads on npm, a decrease of 80.0% over the past 30 days.
About @showlotus/prettier-plugin-kebab-to-camel
Prettier plugin kebab to camel
[!WARNING] If you use
<Foo>xin a.tsfile, it won't work. But you can instead writex as Foo.
A prettier plugin to convet attribute style from kebab-case to camelCase in typescript and javascript files by the provided attributes list.
Input
const obj = {
props: {
name: "xxx",
"-one-two": 12,
"thr-fou-": 34,
"-fiv-six-": 56,
props: {
"name-one": "xxx",
},
"before-page-change"() {},
},
}
export default function () {
return {
props: {
"prop-one": 1,
"prop-two": 2,
"prop-three": 3,
"prop-four": 4,
},
}
}
Output
const obj = {
props: {
name: "xxx",
"-one-two": 12,
"thr-fou-": 34,
"-fiv-six-": 56,
props: {
nameOne: "xxx",
},
beforePageChange() {},
},
}
export default function () {
return {
props: {
propOne: 1,
propTwo: 2,
propThree: 3,
propFour: 4,
},
}
}
Install
npm install --save-dev @showlotus/prettier-plugin-kebab-to-camel
or, using yarn
yarn add --dev @showlotus/prettier-plugin-kebab-to-camel
Usage
Add plugins and an attributes list in prettier config file.
module.exports = {
/* ... */
attributeUnderKeys: ["props"],
plugins: ["@showlotus/prettier-plugin-kebab-to-camel"],
}
APIs
attributeUnderKeys
type: Array<string>
default value: ["props"]
A list of attributes to match the kebab-case style attributes under that attribute.
"attributeUnderKeys": ["props", "someProp"]
As configured above, all objects with properties named props and someProps under the object are matched, and all kebab-case style property names under the matched object are converted to the camelCase style.
Description from the npm listing.
- prettier
- prettier-plugin
- formatter
- typescript
- javascript
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (121)Similar npm Prettier plugins plugins
All 20 @showlotus/prettier-plugin-kebab-to-camel alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@showlotus/prettier-plugin-kebab-to-camel. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.