-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add alphabet notes for each mode;
- Closes #6
- Loading branch information
Showing
4 changed files
with
26 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
export function uid(len?: number): string; | ||
/** | ||
* Produce a UID of desired length. | ||
* @NOTE Relies on a hexadecimal alphabet (A-E, 0-9). | ||
* @param {number} [length] Defaults to `11` | ||
*/ | ||
export function uid(length?: number): string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
export function uid(len?: number): string; | ||
/** | ||
* Produce a cryptographically secure (CSPRNG) UID of desired length using the current environment's `crypto` module. | ||
* @NOTE Relies on a hexadecimal alphabet (A-E, 0-9). | ||
* @param {number} [length] Defaults to `11` | ||
*/ | ||
export function uid(length?: number): string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
export function uid(len?: number): string; | ||
/** | ||
* Produce a UID of desired length. | ||
* @NOTE Relies on a alpanumic alphabet (A-Z, 0-9). | ||
* @param {number} [length] Defaults to `11` | ||
*/ | ||
export function uid(length?: number): string; |