Gathering detailed insights and metrics for @replygirl/change-case-object
Gathering detailed insights and metrics for @replygirl/change-case-object
Gathering detailed insights and metrics for @replygirl/change-case-object
Gathering detailed insights and metrics for @replygirl/change-case-object
Recursively change the case of an object's keys
npm install @replygirl/change-case-object
Typescript
Module System
Min. Node Version
70.6
Supply Chain
99.3
Quality
75.8
Maintenance
100
Vulnerability
100
License
TypeScript (100%)
Total Downloads
28,839
Last Day
11
Last Week
118
Last Month
971
Last Year
14,298
ISC License
2 Stars
27 Commits
8 Branches
1 Contributors
Updated on May 06, 2022
Minified
Minified + Gzipped
Latest Version
1.3.0
Package Id
@replygirl/change-case-object@1.3.0
Unpacked Size
18.98 kB
Size
5.20 kB
File Count
14
Cumulative downloads
Total Downloads
Last Day
-54.2%
11
Compared to previous day
Last Week
-51.8%
118
Compared to previous week
Last Month
-23.7%
971
Compared to previous month
Last Year
74.7%
14,298
Compared to previous year
1
2
Recursively change the case of an object's keys
1yarn add @replygirl/change-case-object
1import { /* function */ } from 'change-case-object'
camelCase
capitalCase
constantCase
dotCase
headerCase
noCase
paramCase
pascalCase
pathCase
sentenceCase
snakeCase
camelCase
1camelCase({ some_key: { some_other_key: true }) 2// { someKey: { someOtherKey: true }}
capitalCase
1capitalCase({ some_key: { some_other_key: true }) 2// { 'Some Key': { 'Some Other Key': true }}
constantCase
1constantCase({ some_key: { some_other_key: true }) 2// { SOME_KEY: { SOME_OTHER_KEY: true }}
dotCase
Why would you do this??
1dotCase({ some_key: { some_other_key: true }) 2// { 'some.key': { 'some.other.key': true }}
headerCase
1headerCase({ some_key: { some_other_key: true }) 2// { 'Some-Key': { 'Some-Other-Key': true }}
noCase
1noCase({ some_key: { some_other_key: true }) 2// { 'some key': { 'some other key': true }}
paramCase
1paramCase({ some_key: { some_other_key: true }) 2// { 'some-key': { 'some-other-key': true }}
pascalCase
1pascalCase({ some_key: { some_other_key: true }) 2// { SomeKey: { SomeOtherKey: true }}
pathCase
1pathCase({ some_key: { some_other_key: true }) 2// { 'some/key': { 'some/other/key': true }}
sentenceCase
1sentenceCase({ some_key: { some_other_key: true }) 2// { 'Some key': { 'Some other key': true }}
snakeCase
1snakeCase({ 'some key': { 'some other key': true })
2// { some_key: { some_other_key: true }}
CasedObject
class1import { CasedObject /*, Case */ } from 'change-case-object'
All of the individual functions are available as static members.
1CasedObject.camelCase({ some_key: { some_other_key: true }}) 2// { someKey: { someOtherKey: true }}
1const someObj = { some_key: { 'some other key': true }} 2 3// initialize without changing case 4const foo = new CasedObject(someObj) 5console.info(foo.value) // { some_key: { 'some other key': true }} 6 7// initialize and change case 8const bar = new CasedObject(someObj, { case: 'camel' }) 9console.info(bar.value) // { someKey: { someOtherKey: true }} 10 11// initialize and change case using enum 12const baz = new CasedObject(someObj, { case: Case.camel }) 13console.info(baz.value) // { someKey: { someOtherKey: true }} 14 15// output the value with keys in a different case 16console.info(baz.snakeCase) // { some_key: { some_other_key: true }} 17console.info(baz.value) // { someKey: { someOtherKey: true }} 18 19// change the case of the value's keys 20baz.value = baz.snakeCase 21console.info(baz.value) // { some_key: { some_other_key: true }}
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 0/24 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
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-23
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