export const lowercaseId = idGenerator("abcdefghijklmnopqrstuvwxyz", 10);
export function idGenerator(alphabet, defaultLength) {
    return function generateId(length = defaultLength) {
        let id = "";
        const alphabetLength = alphabet.length;
        for (let i = 0; i < length; i++) {
            const randomIndex = Math.floor(Math.random() * alphabetLength);
            id += alphabet[randomIndex];
        }
        return id;
    };
}
//# sourceMappingURL=nanoid.js.map