Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

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,118,161
decreased by-0.4%

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 11,629,609 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. It has 1 open source maintainer collaborating on the project.

Last updated on 02 Dec 2020
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