rand-string-generator-2
v1.0.0
Published
A simple utility function to generate random strings of a specified length.
Downloads
1
Maintainers
Readme
random-string-generator
A simple utility function to generate random strings of a specified length.
Installation
npm install random-string-generator
Usage
const { generateRandomString } = require("random-string-generator");
// Generate a random string of length 10
const randomString = generateRandomString(10);
console.log(randomString); // Output: "9Aa3DfGh2j"
API
generateRandomString(length: number): string
Generates a random string of the specified length.
- length (number): The length of the random string to generate. Returns the generated random string.
License
This project is licensed under the ISC License.