snakepascalcamelcaseconverter
v1.0.3
Published
Typescript functions to convert between snake_case, PascalCase, and camelCase
Downloads
3
Maintainers
Readme
About
This is a simple package that converts snake_case, PascalCase, and camelCase to each other.
Usage
import {
snakeToPascalCase,
snakeToCamelCase,
pascalToSnakeCase,
camelToSnakeCase,
pascalToCamelCase,
camelToPascalCase,
} from "snakepascalcamelcaseconverter";
console.log(snakeToPascalCase("snake_case")); // Output: SnakeCase
console.log(snakeToCamelCase("snake_case")); // Output: snakeCase
console.log(pascalToSnakeCase("PascalCase")); // Output: pascal_case
console.log(camelToSnakeCase("camelCase")); // Output: camel_case
console.log(pascalToCamelCase("PascalCase")); // Output: pascalCase
console.log(camelToPascalCase("camelCase")); // Output: CamelCase
Hire Me
Want to work with a kickass frontend dev?
Email me at [email protected]. LinkedIn: https://www.linkedin.com/in/imrankhan001/
P.S: I excel in Remote Async Work Only