webin_randomid

1.0.1 • Public • Published

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 รออัพเดทในอนาคต

Package Sidebar

Install

npm i webin_randomid

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

5.91 kB

Total Files

5

Last publish

Collaborators

  • kraivit