Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101762165
readme.md
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Feb 13, 11:05
Size
847 B
Mime Type
text/x-Algol68
Expires
Sat, Feb 15, 11:05 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
24222851
Attached To
R2664 SHRINE MedCo Fork
readme.md
View Options
#
camelcase
-
keys
[![
Build
Status
](
https
:
//travis-ci.org/sindresorhus/camelcase-keys.svg?branch=master)](https://travis-ci.org/sindresorhus/camelcase-keys)
>
Convert
object
keys
to
camelCase
using
[
`camelcase`
](
https
:
//github.com/sindresorhus/camelcase)
##
Install
```
$
npm
install
--
save
camelcase
-
keys
```
##
Usage
```
js
const
camelcaseKeys
=
require
(
'
camelcase
-
keys
'
);
camelcaseKeys
({
'
foo
-
bar
'
:
true
});
//=> {fooBar: true}
const
argv
=
require
(
'
minimist
'
)(
process
.
argv
.
slice
(
2
));
//=> {_: [], 'foo-bar': true}
camelcaseKeys
(
argv
);
//=> {_: [], fooBar: true}
```
##
API
###
camelcaseKeys
(
input
,
[
options
])
####
input
Type
:
`object`
Object
to
camelCase
.
####
options
Type
:
`object`
#####
exclude
Type
:
`array`
Default
:
`[]`
Exclude
keys
from
being
camelCased
.
##
License
MIT
©
[
Sindre
Sorhus
](
http
:
//sindresorhus.com)
Event Timeline
Log In to Comment