camel-case (4.1.2)

Published 2026-02-24 13:53:48 +00:00 by atheaadmin

Installation

registry=
npm install camel-case@4.1.2
"camel-case": "4.1.2"

About this package

Camel Case

NPM version NPM downloads Bundle size

Transform into a string with the separator denoted by the next word capitalized.

Installation

npm install camel-case --save

Usage

import { camelCase } from "camel-case";

camelCase("string"); //=> "string"
camelCase("dot.case"); //=> "dotCase"
camelCase("PascalCase"); //=> "pascalCase"
camelCase("version 1.2.10"); //=> "version_1_2_10"

The function also accepts options.

Merge Numbers

If you'd like to remove the behavior prefixing _ before numbers, you can use camelCaseTransformMerge:

import { camelCaseTransformMerge } from "camel-case";

camelCase("version 12", { transform: camelCaseTransformMerge }); //=> "version12"

License

MIT

Dependencies

Dependencies

ID Version
pascal-case ^3.1.2
tslib ^2.0.3

Development Dependencies

ID Version
@size-limit/preset-small-lib ^2.2.1
@types/jest ^24.0.23
@types/node ^12.12.14
jest ^24.9.0
rimraf ^3.0.0
ts-jest ^24.2.0
tslint ^5.20.1
tslint-config-prettier ^1.18.0
tslint-config-standard ^9.0.0
typescript ^4.1.2

Keywords

camel case camelcase camel-case convert transform identifier
Details
npm
2026-02-24 13:53:48 +00:00
0
Blake Embrey
MIT
latest
4.0 KiB
Assets (1)
Versions (1) View all
4.1.2 2026-02-24