/base62-random

This is a TypeScript library for generating random base62 strings

Primary LanguageTypeScriptMIT LicenseMIT

base62-random

Overview

This is a TypeScript library for generating random base62 strings. It uses the built-in Node.js crypto library to generate random characters.

Installation

npm install --save @walter.scarborough/base62-random

Usage

Call the generateRandomBase62 function with the desired length of your random base62 output.

const base62Output = generateRandomBase62(10);

Running Tests

npm run test

License

MIT