Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
yitter 4181284222 | 3 years ago | |
---|---|---|
.. | ||
test | 3 years ago | |
.gitignore | 3 years ago | |
README.md | 3 years ago | |
index.js | 3 years ago | |
package.json | 3 years ago |
项目更多介绍参照: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());
}
雪花算法中非常好用的数字ID生成器
C C# Pascal Go D other