pascal-case (3.1.2)

Published 2026-02-24 14:02:27 +00:00 by atheaadmin

Installation

registry=
npm install pascal-case@3.1.2
"pascal-case": "3.1.2"

About this package

Pascal Case

NPM version NPM downloads Bundle size

Transform into a string of capitalized words without separators.

Installation

npm install pascal-case --save

Usage

import { pascalCase } from "pascal-case";

pascalCase("string"); //=> "String"
pascalCase("dot.case"); //=> "DotCase"
pascalCase("PascalCase"); //=> "PascalCase"
pascalCase("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 pascalCaseTransformMerge:

import { pascalCaseTransformMerge } from "pascal-case";

pascalCase("version 12", { transform: pascalCaseTransformMerge }); //=> "Version12"

License

MIT

Dependencies

Dependencies

ID Version
no-case ^3.0.4
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

pascal case camel capital convert transform identifier class
Details
npm
2026-02-24 14:02:27 +00:00
1
Blake Embrey
MIT
latest
4.1 KiB
Assets (1)
Versions (1) View all
3.1.2 2026-02-24