MCPcopy
hub / github.com/gitroomhq/postiz-app / makeId

Function makeId

libraries/nestjs-libraries/src/services/make.is.ts:1–10  ·  view source on GitHub ↗
(length: number)

Source from the content-addressed store, hash-verified

1export const makeId = (length: number) => {
2 let text = '';
3 const possible =
4 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
5
6 for (let i = 0; i < length; i += 1) {
7 text += possible.charAt(Math.floor(Math.random() * possible.length));
8 }
9 return text;
10};

Callers 15

removeMarkdownFunction · 0.90
createAppMethod · 0.90
rotateSecretMethod · 0.90
exchangeCodeForTokenMethod · 0.90
updateIntegrationMethod · 0.90
schedulePostMethod · 0.90
generatePostsDraftMethod · 0.90
inviteTeamMemberMethod · 0.90
createMaxUserMethod · 0.90
updateApiKeyMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected