Options
All
  • Public
  • Public/Protected
  • All
Menu

Module kebabCase

Index

References

Functions String

References

Renames and re-exports kebabCase

String Functions

  • kebabCase(string: string): string
  • Converts string to kebab case.

    since

    5.6.0

    see

    camelCase, lowerCase, snakeCase, startCase, upperCase, upperFirst

    example
    kebabCase('Foo Bar')
    // => 'foo-bar'

    kebabCase('fooBar')
    // => 'foo-bar'

    kebabCase('__FOO_BAR__')
    // => 'foo-bar'

    Parameters

    • string: string

      The string to convert.

    Returns string

    Returns the kebab cased string.