Caseplus
A typescript library for converting string cases
Get Started
Install the package by running the following commands
npm install @uniquedj95/caseplus
Or
yarn add @uniquedj95/caseplus
Examples
- convert underscore cased string to pascal cased string
import { underscoreToPascal } from '@uniquedj95/caseplus'
console.log(underscoreToPascal('my_variable'))
// MyVariable
API References
Function Name | Description |
---|---|
underscoreToPascal | A function that convert an underscore_cased string to PascalCased string |
camelToUnderscore | A function that convert an camelCased string to underscore_cased string |