Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

pascal-case

Package Overview
Dependencies
2
Maintainers
1
Versions
15
Issues
File Explorer

Advanced tools

pascal-case

Transform into a string of capitalized words without separators

    3.1.2latest

Version published
Maintainers
1
Weekly downloads
12,532,664
decreased by-1.86%

Weekly downloads

Readme

Source

Pascal Case

NPM version NPM downloads Bundle size

Transform into a string of capitalized words without separators.

Installation

npm install pascal-case --save

Usage

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.

Merge Numbers

If you'd like to remove the behavior prefixing _ before numbers, you can use pascalCaseTransformMerge:

import { pascalCaseTransformMerge } from "pascal-case"; pascalCase("version 12", { transform: pascalCaseTransformMerge }); //=> "Version12"

License

MIT

Keywords

FAQs

What is pascal-case?

Transform into a string of capitalized words without separators

Is pascal-case popular?

The npm package pascal-case receives a total of 10,914,853 weekly downloads. As such, pascal-case popularity was classified as popular.

Is pascal-case well maintained?

We found that pascal-case demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 02 Dec 2020

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc