![](https://camo.githubusercontent.com/003722e6b0542a0bb9cd58b2ea37dcca959ecedd3cd88bdbbf3a4ea0b2b2a130/68747470733a2f2f692e6962622e636f2f6856775050334b2f636173652d746f2d636173652e706e67)
import { CaseToCase } from 'case-to-case'
const string = new CaseToCase()
const stringInAnyCase = 'helloWorld'
// Bring a string to a specific case
string.toCamelCase(stringInAnyCase) // ➡️ helloWorld
string.toLowerCase(stringInAnyCase) // ➡️ hello-world
string.toLowerKebabCase(stringInAnyCase) // ➡️ hello-world
string.toPascalCase(stringInAnyCase) // ➡️ HelloWorld
string.toUpperCase(stringInAnyCase) // ➡️ HELLO-WORLD
string.toUpperKebabCase(stringInAnyCase) // ➡️ HELLO-WORLD
string.toUpperSnakeCase(stringInAnyCase) // ➡️ HELLO_WORLD
// Is Case
string.isCamelCase(stringInAnyCase) // ➡️ true
string.isLowerCase(stringInAnyCase) // ➡️ false
string.isLowerKebabCase(stringInAnyCase) // ➡️ false
string.isLowerSnakeCase(stringInAnyCase) // ➡️ false
string.isUpperCase(stringInAnyCase) // ➡️ false
string.isUpperKebabCase(stringInAnyCase) // ➡️ false
string.isUpperSnakeCase(stringInAnyCase) // ➡️ false
// Define Case
string.defineCase(stringInAnyCase) // ➡️ camelCase