How to use the kebab function from change-case

Find comprehensive JavaScript change-case.kebab code examples handpicked from public code repositorys.

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!!!';
    }
fork icon0
star icon1
watch icon0

+ 5 other calls in file