Skip to main content
Module

x/camelcase/mod.ts>CamelCaseOptions

🧶 Convert dash/dot/underscore/space separated string to camelCase
Latest
interface CamelCaseOptions
import { type CamelCaseOptions } from "https://deno.land/x/camelcase@v2.1.0/mod.ts";

This module is browser compatible.

Camel case

https://github.com/UltiRequiem/camelcase

https://ulti.js.org/camelcase

Copyright (c) Eliaz Bobadilla.

Released under the MIT License.

Properties

readonly
optional
pascalCase: boolean

Uppercase the first character: foo-barFooBar.

readonly
optional
preserveConsecutiveUppercase: boolean

Preserve the consecutive uppercase characters: foo-BARFooBAR.

readonly
optional
locale: false | string | readonly string[]

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.

Setting `locale: false` ignores the platform locale and uses the [Unicode Default Case Conversion](https://unicode-org.github.io/icu/userguide/transforms/casemappings.html#simple-single-character-case-mapping) algorithm.
Default: The host environment’s current locale.