alpha-rand

1.0.3 • Public • Published

Random alphabetic string generator

Simple implementation of random string generation using crypto for better randomness.
The string will consist of alphabetic characters only, both lower and upper case (a-zA-Z).

Usage

Install the package:

npm install alpha-rand
yarn add alpha-rand

Import and use:

const strRandom = require('alpha-rand');
strRandom(128); // 128 characters random string.
strRandom(32); // 32 characters random string.

Or, even more easy: just copy the code!

Readme

Keywords

Package Sidebar

Install

npm i alpha-rand

Weekly Downloads

10

Version

1.0.3

License

MIT

Unpacked Size

2.3 kB

Total Files

4

Last publish

Collaborators

  • jitesoft~
  • johannestegner