Gathering detailed insights and metrics for change-case
Gathering detailed insights and metrics for change-case
Gathering detailed insights and metrics for change-case
Gathering detailed insights and metrics for change-case
change-case-all
All change-case methods bundled in a single module
pascalcase
Convert a string to pascal case (upper camelcase).
case-anything
camelCase, kebab-case, PascalCase... a simple integration with nano package size. (SMALL footprint!)
@types/change-case
Stub TypeScript definitions entry for change-case, which provides its own types definitions
Convert strings between camelCase, PascalCase, Capital Case, snake_case and more
npm install change-case
Typescript
Module System
Node Version
NPM Version
100
Supply Chain
92.8
Quality
76.2
Maintenance
100
Vulnerability
100
License
title-case@4.3.2
Updated on Sep 15, 2024
change-case@5.4.4
Updated on Apr 03, 2024
Fix recursive options in keys change case
Updated on Feb 14, 2024
Remove regex lookbehind
Updated on Jan 10, 2024
Add `sentenceCase` option
Updated on Jan 08, 2024
Add `split` option to `change-case`
Updated on Jan 08, 2024
TypeScript (100%)
Total Downloads
1,410,927,247
Last Day
420,204
Last Week
9,709,737
Last Month
42,620,470
Last Year
425,786,284
MIT License
2,350 Stars
323 Commits
100 Forks
15 Watchers
2 Branches
23 Contributors
Updated on Jun 21, 2025
Minified
Minified + Gzipped
Latest Version
5.4.4
Package Id
change-case@5.4.4
Unpacked Size
35.07 kB
Size
7.00 kB
File Count
8
NPM Version
10.2.0
Node Version
21.0.0
Published on
Apr 03, 2024
Cumulative downloads
Total Downloads
Last Day
-7.1%
420,204
Compared to previous day
Last Week
-9.2%
9,709,737
Compared to previous week
Last Month
1.1%
42,620,470
Compared to previous month
Last Year
37.5%
425,786,284
Compared to previous year
No dependencies detected.
Transform a string between
camelCase
,PascalCase
,Capital Case
,snake_case
,kebab-case
,CONSTANT_CASE
and others.
npm install change-case --save
1import * as changeCase from "change-case"; 2 3changeCase.camelCase("TEST_VALUE"); //=> "testValue"
Included case functions:
Method | Result |
---|---|
camelCase | twoWords |
capitalCase | Two Words |
constantCase | TWO_WORDS |
dotCase | two.words |
kebabCase | two-words |
noCase | two words |
pascalCase | TwoWords |
pascalSnakeCase | Two_Words |
pathCase | two/words |
sentenceCase | Two words |
snakeCase | two_words |
trainCase | Two-Words |
All methods accept an options
object as the second argument:
delimiter?: string
The character to use between words. Default depends on method, e.g. _
in snake case.locale?: string[] | string | false
Lower/upper according to specified locale, defaults to host environment. Set to false
to disable.split?: (value: string) => string[]
A function to define how the input is split into words. Defaults to split
.prefixCharacters?: string
Retain at the beginning of the string. Defaults to ""
. Example: use "_"
to keep the underscores in __typename
.suffixCharacters?: string
Retain at the end of the string. Defaults to ""
. Example: use "_"
to keep the underscore in type_
.By default, pascalCase
and snakeCase
separate ambiguous characters with _
. For example, V1.2
would become V1_2
instead of V12
. If you prefer them merged you can set mergeAmbiguousCharacters
to true
.
Change case exports a split
utility which can be used to build other case functions. It accepts a string and returns each "word" as an array. For example:
1split("fooBar") 2 .map((x) => x.toLowerCase()) 3 .join("_"); //=> "foo_bar"
1import * as changeKeys from "change-case/keys"; 2 3changeKeys.camelCase({ TEST_KEY: true }); //=> { testKey: true }
Change case keys wraps around the core methods to transform object keys to any case.
1
.This package is a pure ESM package and ships with TypeScript definitions. It cannot be require
'd or used with CommonJS module resolution in TypeScript.
MIT
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
security policy file detected
Details
Reason
license file detected
Details
Reason
2 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 3
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
Found 4/30 approved changesets -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
10 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-16
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More