sfcode
An Online Competing and Development Environment
|
Convert a dash/dot/underscore/space separated string to camelCase or PascalCase:
foo-bar
→fooBar
Correctly handles Unicode strings.
If you need to support Firefox, stay on version 5 as version 6 uses regex features not available in Firefox.
Type: string | string[]
String to convert to camel case.
Type: object
Type: boolean
\ Default: false
Uppercase the first character: foo-bar
→ FooBar
Type: string | string[]
\ Default: The host environment’s current locale.
The locale parameter indicates the locale to be used to convert to upper/lower case according to any locale-specific case mappings. If multiple locales are given in an array, the best available locale is used.
Available as part of the Tidelift Subscription.
The maintainers of camelcase and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.