Gathering detailed insights and metrics for change-case-all
Gathering detailed insights and metrics for change-case-all
Gathering detailed insights and metrics for change-case-all
Gathering detailed insights and metrics for change-case-all
Combined version of all change-case methods
npm install change-case-all
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
16 Stars
43 Commits
3 Forks
2 Watching
2 Branches
2 Contributors
Updated on 23 Oct 2024
TypeScript (98.15%)
JavaScript (1.85%)
Cumulative downloads
Total Downloads
Last day
-3.4%
1,105,028
Compared to previous day
Last week
2.8%
5,910,582
Compared to previous week
Last month
11.2%
24,407,501
Compared to previous month
Last year
42.3%
265,161,569
Compared to previous year
4
5
Change case functions for all cases in TypeScript and JavaScript.
Combined version of all change-case
methods, so you do not need to install them separately.
ESM and CJS bundles are included, also backwards compatible with change-case@4.1.0.
change-case-all@2.0.0
introduces a Case
helper class, which can be used to access all methods.
1npm install --save change-case-all
1import { Case } from 'change-case-all'; 2const camel = Case.camel('test string'); // testString 3const upper = Case.upper('test string'); // TEST STRING 4 5 6import { camelCase, upperCase, ... } from 'change-case-all'; 7const camel = camelCase('test string'); // testString 8const upper = upperCase('test string'); // TEST STRING
1const { Case } = require('change-case-all'); 2const camel = Case.camel('foo-bar'); // fooBar 3const snake = Case.snake('fooBar'); // foo_bar 4 5const { camelCase, snakeCase } = require('change-case-all'); 6const camel = camelCase('foo-bar'); // fooBar 7const snake = snakeCase('fooBar'); // foo_bar
change-case@5.2.0
Case
helper class: e.g. Case.camel('test string'); // testString
TitleCase@4.1.0
failing in tests, thus kept at 3.0.3
1import { Case } from 'change-case-all';
2
3const str = 'test string';
4
5camel = Case.camel(str); // testString
6capital = Case.capital(str); // Test String
7constant = Case.constant(str); // TEST_STRING
8dot = Case.dot(str); // test.string
9no = Case.no(str); // test string
10pascal = Case.pascal(str); // TestString
11path = Case.path(str); // test/string
12sentence = Case.sentence(str); // Test string
13snake = Case.snake(str); // test_string
14train = Case.train(str); // Test-String
15kebab = Case.kebab(str); // test-string
16sponge = Case.sponge(str); // TeSt StRiNg
17swapCase = Case.swap(str); // TEST STRING
18title = Case.title(str); // Test String
19uppper = Case.upper(str); // TEST STRING
20localeUpper = Case.localeUpper(str, 'en'); // TEST STRING
21lower = Case.lower(str); // test string
22localeLower = Case.localeLower(str, 'en'); // test string
23lowerFirst = Case.lowerFirst(str); // test string
24upperFirst = Case.upperFirst(str); // Test string
25isUpper = Case.isUpper(str); // false
26isLower = Case.isLower(str); // true
1import { camelCase, upperCase, ... } from 'change-case-all'; 2 3const str = 'test string'; 4 5camel = camelCase(str); // testString 6capital = capitalCase(str); // Test String 7constant = constantCase(str); // TEST_STRING 8dot = dotCase(str); // test.string 9no = noCase(str); // test string 10pascal = pascalCase(str); // TestString 11path = pathCase(str); // test/string 12sentence = sentenceCase(str); // Test string 13snake = snakeCase(str); // test_string 14train = trainCase(str); // Test-String 15kebab = kebabCase(str); // test-string 16sponge = spongeCase(str); // TeSt StRiNg 17swapCase = swapCase(str); // TEST STRING 18title = titleCase(str); // Test String 19uppper = upperCase(str); // TEST STRING 20localeUpper = localeUpperCase(str, 'en'); // TEST STRING 21lower = lowerCase(str); // test string 22localeLower = localeLowerCase(str, 'en'); // test string 23lowerFirst = lowerCaseFirst(str); // test string 24upperFirst = upperCaseFirst(str); // Test string 25isUpper = isUpperCase(str); // false 26isLower = isLowerCase(str); // true
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
6 existing vulnerabilities detected
Details
Reason
Found 1/25 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
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
Score
Last Scanned on 2024-11-25
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 Morechange-case
Transform a string between `camelCase`, `PascalCase`, `Capital Case`, `snake_case`, `kebab-case`, `CONSTANT_CASE` and others
@ckeditor/ckeditor5-case-change
Case change feature for CKEditor 5.
use-callback-ref
The same useRef, but with callback
path-is-inside
Tests whether one path is inside another path