Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

to-pascal-case

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

to-pascal-case

Convert a string to pascal case.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is to-pascal-case?

The to-pascal-case npm package is a utility that converts strings to PascalCase. PascalCase is a naming convention in which the first letter of each word in a compound word is capitalized and concatenated without spaces or punctuation.

What are to-pascal-case's main functionalities?

Convert a simple string to PascalCase

This feature converts a simple string with spaces into PascalCase.

const toPascalCase = require('to-pascal-case');
const result = toPascalCase('hello world');
console.log(result); // HelloWorld

Convert a hyphenated string to PascalCase

This feature converts a hyphenated string into PascalCase.

const toPascalCase = require('to-pascal-case');
const result = toPascalCase('hello-world');
console.log(result); // HelloWorld

Convert an underscored string to PascalCase

This feature converts an underscored string into PascalCase.

const toPascalCase = require('to-pascal-case');
const result = toPascalCase('hello_world');
console.log(result); // HelloWorld

Convert a camelCase string to PascalCase

This feature converts a camelCase string into PascalCase.

const toPascalCase = require('to-pascal-case');
const result = toPascalCase('helloWorld');
console.log(result); // HelloWorld

Other packages similar to to-pascal-case

Keywords

FAQs

Package last updated on 21 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc