Download next.js/turbo/generators/helpers.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 230 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/turbo/generators/helpers.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/turbo/generators/helpers.ts
-
curl -L -o helpers.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/turbo/generators/helpers.ts
230 Bytes
| import type { NodePlopAPI } from 'node-plop' | |
| export function toFileName(str: string) { | |
| return str.toLowerCase().replace(/ /g, '-') | |
| } | |
| export function init(plop: NodePlopAPI): void { | |
| plop.setHelper('toFileName', toFileName) | |
| } | |