snakepascalcamelcaseconverter
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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 ikhan77727@gmail.com. LinkedIn: https://www.linkedin.com/in/imrankhan001/

P.S: I excel in Remote Async Work Only

Package Sidebar

Install

npm i snakepascalcamelcaseconverter

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

15.2 kB

Total Files

4

Last publish

Collaborators

  • imran001