MCPcopy Create free account
hub / github.com/dailydotdev/apps / formatKeyword

Function formatKeyword

packages/shared/src/lib/strings.ts:30–38  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

28 * @returns The formatted string
29 */
30export const formatKeyword = (value: string): string => {
31 if (!value) {
32 return '';
33 }
34 return value
35 .split('-')
36 .map((word) => capitalize(word))
37 .join(' ');
38};
39
40export const anchorDefaultRel = 'noopener noreferrer';
41

Callers 4

UserEngagementSectionsFunction · 0.90
TagDirectoryListItemFunction · 0.90
TagPageNavbarFunction · 0.90
TagTopicPageFunction · 0.90

Calls 1

capitalizeFunction · 0.85

Tested by

no test coverage detected