simple-random-string-creator

1.1.1 • Public • Published

Simple Random String Generator

Created to return a string of random letters and numbers.

There are two possible parameters:

  • Character Limit: provide a number to set the length of the string. (default = 11)
  • Complex: provide a boolean if you want to include special characters or not. (default = false)

Install

yarn add simple-random-string-creator

            or

npm i simple-random-string-creator

Usage

import randString from 'simple-random-string-creator';

const example1 = randString()           // RJu1EZ2QI8Q
const example2 = randString(16)         // tQw0AD3Gc9dq0Kb1
const example3 = randString(11, true)   // sQU7R/3WF6}
------------------------------------------------------------------------------------------------
const example4 = randString(true)       // Will result in a random char, just one (non-complex).

Readme

Keywords

none

Package Sidebar

Install

npm i simple-random-string-creator

Weekly Downloads

2

Version

1.1.1

License

MIT

Unpacked Size

2.3 kB

Total Files

4

Last publish

Collaborators

  • kodahscripts