Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98067000
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, Jan 9, 10:18
Size
1 KB
Mime Type
text/x-java
Expires
Sat, Jan 11, 10:18 (2 d)
Engine
blob
Format
Raw Data
Handle
23492655
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
README.md
View Options
#
Camel
Case
[![
NPM
version
][
npm
-
image
]][
npm
-
url
]
[![
NPM
downloads
][
downloads
-
image
]][
downloads
-
url
]
[![
Bundle
size
][
bundlephobia
-
image
]][
bundlephobia
-
url
]
>
Transform
into
a
string
with
the
separator
denoted
by
the
next
word
capitalized
.
##
Installation
```
npm
install
camel
-
case
--
save
```
##
Usage
```
js
import
{
camelCase
}
from
"camel-case"
;
camelCase
(
"string"
);
//=> "string"
camelCase
(
"dot.case"
);
//=> "dotCase"
camelCase
(
"PascalCase"
);
//=> "pascalCase"
camelCase
(
"version 1.2.10"
);
//=> "version_1_2_10"
```
The
function
also
accepts
[
`options`
](
https
:
//github.com/blakeembrey/change-case#options).
###
Merge
Numbers
If
you
'
d
like
to
remove
the
behavior
prefixing
`_` before numbers, you can use `camelCaseTransformMerge`
:
```
js
import
{
camelCaseTransformMerge
}
from
"camel-case"
;
camelCase
(
"version 12"
,
{
transform
:
camelCaseTransformMerge
});
//=> "version12"
```
##
License
MIT
[
npm
-
image
]:
https
:
//img.shields.io/npm/v/camel-case.svg?style=flat
[
npm
-
url
]:
https
:
//npmjs.org/package/camel-case
[
downloads
-
image
]:
https
:
//img.shields.io/npm/dm/camel-case.svg?style=flat
[
downloads
-
url
]:
https
:
//npmjs.org/package/camel-case
[
bundlephobia
-
image
]:
https
:
//img.shields.io/bundlephobia/minzip/camel-case.svg
[
bundlephobia
-
url
]:
https
:
//bundlephobia.com/result?p=camel-case
Event Timeline
Log In to Comment