nanoid
nanoid(
size?,options?):string
Defined in: src/nanoid.ts:36
A nanoid: 21 URL-safe characters by default. Drop-in for the nanoid package.
Parameters
Section titled “Parameters”number = 21
options?
Section titled “options?”NanoidOptions = {}
Returns
Section titled “Returns”string
Example
Section titled “Example”nanoid(); // "V1StGXR8_Z5jdHi6B-myT"nanoid(10); // "IRFa-VaY2b"nanoid(12, { alphabet: "0123456789abcdef" }); // "3f7a1c05e2b8"