machine-name
v1.0.1
Published
This library provides simple functions to convert a string into a machine-name
Downloads
39
Maintainers
Readme
machine-name
This library provides simple functions to convert a string into a machine-name
Usage
import { camel, kebab, pascal, snake } from "machine-name";
kebab("Lorem ipsum dolor sit amet"); // lorem-ipsum-dolor-sit-amet
pascal("Lorem ipsum dolor sit amet"); // LoremIpsumDolorSitAmet
camel("Lorem ipsum dolor sit amet"); // loremIpsumDolorSitAmet
snake("Lorem ipsum dolor sit amet"); // lorem_ipsum_dolor_sit_amet