Search results
3 packages found
graphql-global-id-directive is a package that includes a GlobalIdDirective class, which offers two directives: globalIdEncodeDirective and globalIdDecodeDirective. These directives handle the encoding and decoding of global IDs, making it a breeze to inte
published 0.0.7 2 months ago
M
Q
P
A random unique id generator
published 1.1.3 3 years ago
M
Q
P
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) ```
published 1.0.2 3 years ago
M
Q
P