Const
import { convertCase } from '@kitsuyui/string'
convertCase('hello world', 'kebab-case') // => 'hello-world'
convertCase('hello world', 'snake_case') // => 'hello_world'
convertCase('hello world', 'space separated') // => 'hello world'
convertCase('hello world', 'camelCase') // => 'helloWorld'
convertCase('hello world', 'UpperCamelCase') // => 'HelloWorld'
convertCase('hello world', 'lowerCamelCase') // => 'helloWorld'
convertCase('hello world', 'PascalCase') // => 'HelloWorld'
Convert the text to the specified case