Skip to content

มีการจัดการที่หลากหลายและสามารถสร้างข้อมูลได้ภายในระยะเวลาอันใกล้ ๆ

License

ez-kraivit/webin_randomid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

มีการจัดการที่หลากหลายและสามารถสร้างข้อมูลได้ภายในระยะเวลาอันใกล้ ๆ

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published