MCPcopy Index your code
hub / github.com/nodejs/nodejs.org / getAcronymFromString

Function getAcronymFromString

apps/site/util/string.ts:1–2  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

1export const getAcronymFromString = (str: string) =>
2 [...(str.trim().match(/\b(\w)/g) || '')].join('').toUpperCase();
3
4export const dashToCamelCase = (str: string) =>
5 str

Callers 4

SupportersListFunction · 0.90
mapIdToAuthorFunction · 0.90
mapNameToAuthorFunction · 0.90
string.test.mjsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected