1.1.2 • Published 6 years ago

light-random v1.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

light-random

Ultra-lightweight, cryptographically weak, alphanumerical, package-independent random string generator.

Installation

npm install --save light-random

or

yarn add light-random

API

lightRandom(length: number): string

Default length: 8

Usage

Require module

const lightRandom = require('light-random');

or import with ES6

import {lightRandom} from 'light-random';

Then call it

lightRandom();
//default length: 8
//outputs 'bkiVCGkd'

lightRandom(15);
//outputs 'NPf78EK3oNPiU3t'

lightRandom(50);
//outputs 'TXU8A9K2cPfA4y76IXy3o4x6SQlxTLA26HOMLklVo4vJ0Rxjdv'

License

MIT.

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago