MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / randomName

Function randomName

packages/common/src/names.ts:3–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import { animals, names, uniqueNamesGenerator } from 'unique-names-generator';
2
3export function randomName() {
4 return uniqueNamesGenerator({
5 dictionaries: [names, animals],
6 length: 2,
7 style: 'capital',
8 separator: ' ',
9 });
10}
11
12export function randomSplitName() {
13 const [firstName, lastName] = randomName().split(' ');

Callers 1

randomSplitNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected