Search
node-snowflake-id
nodejs的分布式id解决方案 参考Twitter的snowflake ```js const SnowflakeID = require("SnowflakeID") const sid = new SnowflakeID() let arr = [] for(let i = 0; i < 10000; i++){ arr.push(sid.generate()) } console.log(arr) ```
v1.0.2 URL:
https://unpkg.com/node-snowflake-id@1.0.2/dist/SnowflakeID.umd.js
Open
Browse Files
id
snowflake
snowflakeid
node-snowflake
node-id