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

Function formatKeyword

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

Source from the content-addressed store, hash-verified

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

Callers 3

TagTopicPageFunction · 0.90
getTagPageJsonLdFunction · 0.90
getStaticPropsFunction · 0.90

Calls 1

capitalizeFunction · 0.85

Tested by

no test coverage detected