mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-28 23:37:10 +02:00
♻️ Move nanoid to utils package (#1430)
This commit is contained in:
parent
d55131c2ab
commit
0fc7d0a0c8
12 changed files with 371 additions and 439 deletions
13
packages/utils/src/nanoid.ts
Normal file
13
packages/utils/src/nanoid.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { customAlphabet } from "nanoid";
|
||||
|
||||
export const nanoid = customAlphabet(
|
||||
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
|
||||
12,
|
||||
);
|
||||
|
||||
export const randomid = customAlphabet(
|
||||
"0123456789abcdefghijklmnopqrstuvwxyz",
|
||||
12,
|
||||
);
|
||||
|
||||
export const generateOtp = customAlphabet("0123456789", 6);
|
Loading…
Add table
Add a link
Reference in a new issue