mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 00:54:06 -08:00
6 lines
186 B
TypeScript
6 lines
186 B
TypeScript
|
import { nanoid } from 'nanoid';
|
||
|
|
||
|
export function getUniqueWorkflowName(workflowNamePrefix?: string) {
|
||
|
return workflowNamePrefix ? `${workflowNamePrefix} ${nanoid(12)}` : nanoid(12);
|
||
|
}
|