File size: 230 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 |
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)
}
|