MCPcopy Create free account
hub / github.com/arctic-cli/interface / titlecase

Function titlecase

packages/arctic/src/util/locale.ts:2–4  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

1export namespace Locale {
2 export function titlecase(str: string) {
3 return str.replace(/\b\w/g, (c) => c.toUpperCase())
4 }
5
6 export function time(input: number): string {
7 const date = new Date(input)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected