feat: monorepo
This commit is contained in:
10
packages/utils/src/generateUID.ts
Normal file
10
packages/utils/src/generateUID.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { customAlphabet } from "nanoid";
|
||||
|
||||
const alphabet = "0123456789abcdefghijklmnopqrstuvwxyz";
|
||||
const length = 12;
|
||||
|
||||
const nanoid = customAlphabet(alphabet, length);
|
||||
|
||||
export function generateUID() {
|
||||
return nanoid();
|
||||
}
|
||||
3
packages/utils/src/index.ts
Normal file
3
packages/utils/src/index.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export const name = "utils";
|
||||
|
||||
export { generateUID } from "./generateUID";
|
||||
Reference in New Issue
Block a user