import { customAlphabet } from "https://deno.land/x/sweetid@0.9.0/deps.ts";
Low-level function to change alphabet and ID size.
Alphabet must contain 256 symbols or less. Otherwise, the generator will not be secure.
Examples
import { customAlphabet } from "https://deno.land/x/nanoid/customAlphabet.ts";
import { customAlphabet } from "https://deno.land/x/nanoid/customAlphabet.ts";
const alphabet = '0123456789абвгдеё'; const nanoid = customAlphabet(alphabet, 5);
console.log(nanoid()); // => "8ё56а"