UNPKG

@necto/id

Version:

Necto's library for generating algorithmic ID's based on specified parameters.

17 lines (15 loc) 554 B
/** * Copyright (c) Corinvo, LLC. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ /** * Generates a random ID of the specified length using the provided character set. * @param length - The length of the ID to generate. * @param charset - The character set to use for generating the ID (default: ALPHABET_COMBINED). * @returns A randomly generated ID string. */ declare function id(length?: number, charset?: string[]): string; export { id };