MCPcopy Create free account
hub / github.com/nodejs/nodejs.org / getAuthors

Function getAuthors

apps/site/util/author.ts:74–80  ·  view source on GitHub ↗
({ usernames, names, clickable }: AuthorProps)

Source from the content-addressed store, hash-verified

72};
73
74export const getAuthors = ({ usernames, names, clickable }: AuthorProps) => {
75 if (usernames) {
76 return getAuthorWithId(usernames, clickable ?? true);
77 }
78
79 return getAuthorWithName(names || [], clickable ?? true);
80};

Callers 2

WithAvatarGroupFunction · 0.90
author.test.mjsFile · 0.90

Calls 2

getAuthorWithIdFunction · 0.85
getAuthorWithNameFunction · 0.85

Tested by

no test coverage detected