feat: version 2 beta
This commit is contained in:
10
libraries/nanoid.ts
Normal file
10
libraries/nanoid.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { nanoid } from "nanoid";
|
||||
|
||||
/**
|
||||
* Generate a new nanoid.
|
||||
*
|
||||
* @param size - Size of the id. Default: 11
|
||||
*/
|
||||
export function makeId(size: number = 11): string {
|
||||
return nanoid(size);
|
||||
}
|
||||
Reference in New Issue
Block a user