toCamelCase

Creates a to camel case transformation action.

Words are separated by _, - and ASCII whitespace, as well as by case and acronym boundaries.

Acronym runs are normalized to lowercase (e.g. parseURLValueparseUrlValue) and digits stay attached to the preceding token (e.g. item2Nameitem2Name).

const Action = v.toCamelCase();

Returns

Examples

The following examples show how toCamelCase can be used.

Camel case string

Schema that transforms a string to camel case.

const StringSchema = v.pipe(v.string(), v.toCamelCase());

The following APIs can be combined with toCamelCase.

Schemas

Methods

Utils

Contributors

Thanks to all the contributors who helped make this page better!

  • GitHub profile picture of @fabian-hiller

Partners

Thanks to our partners who support the project ideally and financially.

Sponsors

Thanks to our GitHub sponsors who support the project financially.

  • GitHub profile picture of @vasilii-kovalev
  • GitHub profile picture of @UpwayShop
  • GitHub profile picture of @ruiaraujo012
  • GitHub profile picture of @hyunbinseo
  • GitHub profile picture of @nickytonline
  • GitHub profile picture of @kibertoad
  • GitHub profile picture of @caegdeveloper
  • GitHub profile picture of @Thanaen
  • GitHub profile picture of @bmoyroud
  • GitHub profile picture of @ysknsid25
  • GitHub profile picture of @dslatkin