1.0.1 • Published 3 years ago

webin_randomid v1.0.1

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

WEBIN RANDOMID by Kraivit Mongkhonsakunrit Build Status

Table Of Contents

Benchmark

$ node ./test/benchmark.js
nanoid                    2,280,683 ops/sec
customAlphabet            1,851,117 ops/sec
uuid v4                   1,348,425 ops/sec
uid.sync                    313,306 ops/sec
secure-random-string        294,161 ops/sec
cuid                        158,988 ops/sec
shortid                      37,222 ops/sec

Async:
async nanoid                 95,500 ops/sec
async customAlphabet         93,800 ops/sec
async secure-random-string   90,316 ops/sec
uid                          85,583 ops/sec

Non-secure:
non-secure nanoid         2,641,654 ops/sec
rndm                      2,447,086 ops/sec
webin_randomid            2,565,423 ops/sec

Installation

npm install webin_randomid

Usage

  • Import the module:

    		const randomid = require('webin_randomid');
  • Output:

      randomid.generateid('base62', 10)
    		S42FWasYhb

พร้อมให้ใช้งานแล้วนะครับสำหรับ randomid รออัพเดทในอนาคต