A simple additional library for String
npm install @kitsuyui/stringA simple string manipulation library
``bash`
npm install @kitsuyui/string
`bash`
yarn add @kitsuyui/string
`bash`
pnpm add @kitsuyui/string
`typescript
import { convertCase } from '@kitsuyui/string';
convertCase('helloWorld', 'kebab-case') // => hello-worldhelloWorld
convertCase('hello-world', 'camelCase') // => hello-world
convertCase('helloWorld', 'kebab-case') // => helloWorld
convertCase('hello-world', 'camelCase') // => hello_world
convertCase('hello-world', 'snake_case') // => hello world
convertCase('hello-world', 'space separated') // => HelloWorld
convertCase('hello-world', 'UpperCamelCase') // => HelloWorld
convertCase('hello-world', 'PascalCase') // => helloWorld
convertCase('hello-world', 'lowerCamelCase') // => helloWorld
convertCase('hello-world', 'lowerPascalCase') // => HELLO_WORLD
convertCase('hello-world', 'SCREAMING_SNAKE_CASE') // => HELLO_WORLD
convertCase('hello-world', 'MACRO_CASE') // => Hello-World
convertCase('hello-world', 'Train-Case') // => hello.world
convertCase('hello-world', 'dot.separated') // => helloworld
convertCase('hello-world', 'flatcase') // => HELLO WORLD
convertCase('hello-world', 'ALL CAPS') // => ``
MIT