Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99557793
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
Sat, Jan 25, 10:00
Size
1 KB
Mime Type
text/x-java
Expires
Mon, Jan 27, 10:00 (2 d)
Engine
blob
Format
Raw Data
Handle
23822413
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
README.md
View Options
#
Pascal
Case
[![
NPM
version
][
npm
-
image
]][
npm
-
url
]
[![
NPM
downloads
][
downloads
-
image
]][
downloads
-
url
]
[![
Bundle
size
][
bundlephobia
-
image
]][
bundlephobia
-
url
]
>
Transform
into
a
string
of
capitalized
words
without
separators
.
##
Installation
```
npm
install
pascal
-
case
--
save
```
##
Usage
```
js
import
{
pascalCase
}
from
"pascal-case"
;
pascalCase
(
"string"
);
//=> "String"
pascalCase
(
"dot.case"
);
//=> "DotCase"
pascalCase
(
"PascalCase"
);
//=> "PascalCase"
pascalCase
(
"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 `pascalCaseTransformMerge`
:
```
js
import
{
pascalCaseTransformMerge
}
from
"pascal-case"
;
pascalCase
(
"version 12"
,
{
transform
:
pascalCaseTransformMerge
});
//=> "Version12"
```
##
License
MIT
[
npm
-
image
]:
https
:
//img.shields.io/npm/v/pascal-case.svg?style=flat
[
npm
-
url
]:
https
:
//npmjs.org/package/pascal-case
[
downloads
-
image
]:
https
:
//img.shields.io/npm/dm/pascal-case.svg?style=flat
[
downloads
-
url
]:
https
:
//npmjs.org/package/pascal-case
[
bundlephobia
-
image
]:
https
:
//img.shields.io/bundlephobia/minzip/pascal-case.svg
[
bundlephobia
-
url
]:
https
:
//bundlephobia.com/result?p=pascal-case
Event Timeline
Log In to Comment