Download next.js/examples/cms-payload/utilities/toKebabCase.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 144 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/cms-payload/utilities/toKebabCase.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/examples/cms-payload/utilities/toKebabCase.ts
-
curl -L -o toKebabCase.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/cms-payload/utilities/toKebabCase.ts
144 Bytes
| export const toKebabCase = (string): string => | |
| string | |
| ?.replace(/([a-z])([A-Z])/g, "$1-$2") | |
| .replace(/\s+/g, "-") | |
| .toLowerCase(); | |