Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

radig

1.0.3 • Public • Published

radig

A tiny (92B) and fast utility to randomize a fixed amount of digits

It generates a random fixed amount of digits of your choice and returns as String

Install

npm i radig --save

Usage

const radig = require('radig');
 
// length = 1 (default)
radig(); //=> '5'
radig(); //=> '0'
 
// customize length
radig(3); //=> '571'
radig(16); //=> '8547512354785473'

Tests

npm test

Install

npm i radig

DownloadsWeekly Downloads

4

Version

1.0.3

License

MIT

Unpacked Size

2.89 kB

Total Files

5

Last publish

Collaborators

  • avatar