MCPcopy Create free account
hub / github.com/vercel/examples / transformName

Function transformName

plopfile.mjs:2–4  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

1export default function (plop) {
2 const transformName = (str) => {
3 return str.toLowerCase().replace(/ /g, '-')
4 }
5
6 // create your generators here
7 plop.setGenerator('example', {

Callers 1

plopfile.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected