generate-random-strings
v1.0.4
Published
Generate Random String
Downloads
11
Readme
Installation
You can install this package via npm:
npm install generate-random-strings
Usage
const generateRandomString = require('generate-random-strings');
// Example: Generate a random string with the default length (10 characters)
const randomString1 = generateRandomString();
console.log('Random String 1:', randomString1);
// Example: Generate a random string with a specified length (20 characters)
const randomString2 = generateRandomString(20);
console.log('Random String 2:', randomString2);