Skip to content

Commit

Permalink
Document exports
Browse files Browse the repository at this point in the history
  • Loading branch information
dbkr committed Jan 20, 2025
1 parent 35fe7bc commit 1f1d6f0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/randomstring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,22 @@ limitations under the License.

import { encodeUnpaddedBase64Url } from "./base64.ts";

/**
* String representing the lowercase latin alphabet for use in secureRandomStringFrom
* (can be combined with other such exports or other characters by appending strings)
*/
export const LOWERCASE = "abcdefghijklmnopqrstuvwxyz";

/**
* String representing the uppercase latin alphabet for use in secureRandomStringFrom
* (can be combined with other such exports or other characters by appending strings)
*/
export const UPPERCASE = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";

/**
* String representing the arabic numerals for use in secureRandomStringFrom
* (can be combined with other such exports or other characters by appending strings)
*/
export const DIGITS = "0123456789";

export function secureRandomBase64Url(len: number): string {
Expand Down

0 comments on commit 1f1d6f0

Please sign in to comment.