Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

alpha-rand

jitesoft~15MIT1.0.3

Simple random alphabetic string generator for node.

random, string, alpha

readme

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!