Package Exports
- machine-name
- machine-name/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (machine-name) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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