1.0.2 ā€¢ Published 6 years ago

nonce-fast v1.0.2

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

Build Status Maintainability Test Coverage npm version Downloads dependency status devDependency status

Welcome

Install

npm i nonce-fast

or

yarn add nonce-fast

Usage

const Nonce = require('nonce-fast'),
    nonce = Nonce(9); # define the length of the string

nonce(); # '802354675'
nonce(); # '296876554'
nonce(); # '269567223'

Benchmark

Compared with the original nonce generator

Nonce x 1,783,560 ops/sec Ā±1.69% (83 runs sampled)
NonceFast x 5,832,445 ops/sec Ā±2.35% (77 runs sampled)
Fastest is NonceFast

šŸŽ‰ Some hugs to Abrkn for the original project nonce šŸ»