mirror of
https://github.com/documenso/documenso.git
synced 2025-11-19 11:12:06 +10:00
feat: billing
This commit is contained in:
@ -3,3 +3,7 @@ import { customAlphabet } from 'nanoid';
|
||||
export const alphaid = customAlphabet('0123456789abcdefghijklmnopqrstuvwxyz', 21);
|
||||
|
||||
export { nanoid } from 'nanoid';
|
||||
|
||||
export const generatePrefixedId = (prefix: string, length = 8) => {
|
||||
return `${prefix}_${alphaid(length)}`;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user