How to use the kebab function from change-case
Find comprehensive JavaScript change-case.kebab code examples handpicked from public code repositorys.
GitHub: uropek8/vite-blog
17 18 19 20 21 22 23 24 25 26
name: 'componentName', message: 'Type component name (without prefix). Example: remote-select or RemoteSelect', validate(value, { componentType }) { const nameLength = value.length; const minLength = 3; const fileName = kebab(value); const forbiddenPrefixes = Object.values(PREFIX_TYPES); if (!nameLength) { return 'Components should have a name!!!'; }
0
1
0
+ 5 other calls in file
change-case.pascalCase is the most popular function in change-case (241 examples)