A tiny starter project that shows how CodeHub repositories work.
main
| 1 | export function greet(name: string): string { |
| 2 | return `Hello, ${name}! Welcome to CodeHub.`; |
| 3 | } |
| 4 | |
| 5 | export function slugify(value: string): string { |
| 6 | return value.toLowerCase().trim().replace(/[^a-z0-9]+/g, "-"); |
| 7 | } |
| 8 |
8 lines · 213 bytesLast updated 3 days ago