1
0
mirror of synced 2026-02-25 14:27:58 +08:00
Files
SnowFlake-IdGenerator/Node.js
2021-06-28 17:14:48 +08:00
..
2021-06-28 16:40:23 +08:00
2021-06-28 16:40:23 +08:00
2021-06-28 16:40:23 +08:00
2021-06-28 16:40:23 +08:00
2021-06-28 17:14:48 +08:00

❄ idgenerator-Node.js

介绍

项目更多介绍参照:https://github.com/yitter/idgenerator

代码贡献者bubao 布宝

使用

const GenId = require("./index.js")
const genid = new GenId({ WorkerId: 1 });

for (let index = 0; index < 5000; index++) {
    console.log(genid.NextId());
}