Simple string generation function
npm install lr5-stringgen
lodash library.
bash
npm install lr5-stringgen
`
or yarn:
`bash
yarn add lr5-stringgen
`
Usage
Import the getRandomString function and use it to generate a random string of your desired length.
$3
`javascript
import { getRandomString } from 'lr5-stringgen';
const randomString = getRandomString(10);
console.log(randomString); // Example output: "aB3xZ9kPqT"
`
$3
- length (number): The desired length of the random string.
$3
- (string): A random alphanumeric string of the specified length.
Requirements
This package uses lodash` as a dependency. Ensure that it is properly installed alongside the package.