1.0.3 • Published 8 months ago

lr5-stringgen v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

lr5-stringgen

This package provides a simple utility function to generate random alphanumeric strings of a specified length, leveraging the lodash library.

Installation

To install the package, use npm:

npm install lr5-stringgen

or yarn:

yarn add lr5-stringgen

Usage

Import the getRandomString function and use it to generate a random string of your desired length.

Example

import { getRandomString } from 'lr5-stringgen';

const randomString = getRandomString(10);
console.log(randomString); // Example output: "aB3xZ9kPqT"

Parameters

  • length (number): The desired length of the random string.

Returns

  • (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.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago