tn-case
v3.0.1
Published
Convert different naming convention
Downloads
249
Maintainers
Readme
Usage
import { kebabCase, snakeCase, dotCase, camelCase, pascalCase, spaceCase, customCase } from 'tn-case'
const string = 'lorem ipsum'
kebabCase(string) // lorem-ipsum
snakeCase(string) // lorem_ipsum
dotCase(string) // lorem.ipsum
camelCase(string) // loremIpsum
pascalCase(string) // LoremIpsum
spaceCase(string) // lorem ipsum
customCase(string, '+') // lorem+ipsum