Options
All
  • Public
  • Public/Protected
  • All
Menu

Module string/camelCaseName

Index

References

Functions

References

Renames and re-exports camelCaseName

Functions

  • camelCaseName(str: string): string
  • Converts string to camel case.

    This function convert only latin chars. The preferred purpose is to generate file or class names in your code generation tools.

    example
     camelCase('Foo Bar'); //=> 'fooBar'
    camelCase('foo-bar'); //=> 'fooBar'
    camelCase('foo_bar'); //=> 'fooBar'
    camelCase('FOO_BAR'); //=> 'fooBar'
    camelCase('fooBar'); //=> 'fooBar'
    camelCase('Foo Bär'); //=> 'fooBär'

    Parameters

    • str: string

      The string to convert.

    Returns string

    The camel cased string.

Generated using TypeDoc