mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-24 19:34:30 -05:00
11 lines
256 B
TypeScript
11 lines
256 B
TypeScript
import { nanoid } from "nanoid";
|
|
|
|
export const SHORT_NANOID_LENGTH = 10;
|
|
|
|
/**
|
|
* Generates a short, unique identifier string (wraps nanoid using a smaller length than the default).
|
|
*/
|
|
export function shortNanoid() {
|
|
return nanoid(SHORT_NANOID_LENGTH);
|
|
}
|