Gathering detailed insights and metrics for @agilebot/decamelize-keys
Gathering detailed insights and metrics for @agilebot/decamelize-keys
Gathering detailed insights and metrics for @agilebot/decamelize-keys
Gathering detailed insights and metrics for @agilebot/decamelize-keys
npm install @agilebot/decamelize-keys
Typescript
Module System
Min. Node Version
Node Version
NPM Version
69.8
Supply Chain
98.8
Quality
75
Maintenance
100
Vulnerability
100
License
JavaScript (85.56%)
TypeScript (14.44%)
Total Downloads
278
Last Day
2
Last Week
2
Last Month
9
Last Year
201
MIT License
55 Stars
5 Commits
6 Forks
2 Watchers
1 Branches
2 Contributors
Updated on Jun 18, 2025
Minified
Minified + Gzipped
Latest Version
2.0.2
Package Id
@agilebot/decamelize-keys@2.0.2
Unpacked Size
9.55 kB
Size
3.57 kB
File Count
5
NPM Version
10.2.3
Node Version
18.19.0
Published on
Mar 12, 2024
Cumulative downloads
Total Downloads
Last Day
0%
2
Compared to previous day
Last Week
0%
2
Compared to previous week
Last Month
-35.7%
9
Compared to previous month
Last Year
161%
201
Compared to previous year
Convert object keys from camel case using
decamelize
1npm install decamelize-keys
1import decamelizeKeys from 'decamelize-keys'; 2 3// Convert an object 4decamelizeKeys({fooBar: true}); 5//=> {foo_bar: true} 6 7// Convert an array of objects 8decamelizeKeys([{fooBar: true}, {barFoo: false}]); 9//=> [{foo_bar: true}, {bar_foo: false}]
Type: object | object[]
An object or array of objects to decamelize.
Type: object
Type: string
Default: '_'
The character or string used to separate words.
1import decamelizeKeys from 'decamelize-keys'; 2 3decamelizeKeys({fooBar: true}); 4//=> {foo_bar: true} 5 6decamelizeKeys({fooBar: true}, {separator: '-'}); 7//=> {'foo-bar': true}
Type: Array<string | RegExp>
Default: []
Exclude keys from being decamelized.
Type: string
Default: []
Exclude children at the given object paths in dot-notation from being decamel-cased. For example, with an object like {a: {b: '🦄'}}, the object path to reach the unicorn is 'a.b'.
decamelizeKeys({
aB: 1,
aC: {
cD: 1,
cE: {
eF: 1
}
}
}, {
deep: true,
stopPaths: [
'aC.cE'
]
}),
/*
{
a_b: 1,
a_c: {
c_d: 1,
c_e: {
eF: 1
}
}
}
*/
Type: boolean
Default: false
Recurse nested objects and objects in arrays.
1import decamelizeKeys from 'decamelize-keys'; 2 3decamelizeKeys({fooBar: true, nested: {unicornRainbow: true}}, {deep: true}); 4//=> {foo_bar: true, nested: {unicorn_rainbow: true}}
No vulnerabilities found.
Reason
security policy file detected
Details
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 1/5 approved changesets -- score normalized to 2
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
branch protection not enabled on development/release branches
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