{"versions":{"2.0.1":{"name":"eventid","version":"2.0.1","description":"A utility for generating monotonically increasing unique event ids across a network of services.","main":"build/src/index.js","types":"build/src/index.d.ts","scripts":{"test":"c8 mocha build/test","lint":"gts check","license-check":"jsgl --local .","clean":"gts clean","compile":"tsc -p .","fix":"gts fix","prepare":"npm run compile","pretest":"npm run compile"},"repository":{"type":"git","url":"git+https://github.com/google/eventid-js.git"},"keywords":["uid"],"author":{"name":"Google Inc."},"license":"Apache-2.0","bugs":{"url":"https://github.com/google/eventid-js/issues"},"homepage":"https://github.com/google/eventid-js#readme","dependencies":{"uuid":"^8.0.0"},"devDependencies":{"@types/mocha":"^9.0.0","@types/node":"^16.0.0","@types/uuid":"^8.0.0","c8":"^7.3.0","gts":"^3.0.0","js-green-licenses":"^3.0.0","mocha":"^9.0.0","typescript":"^4.0.0"},"engines":{"node":">=10"},"gitHead":"365b06cef123bc7f9a07a1c917d2e2acb0fd2914","_id":"eventid@2.0.1","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-sPNTqiMokAvV048P2c9+foqVJzk49o6d4e0D/sq5jog3pw+4kBgyR0gaM1FM7Mx6Kzd9dztesh9oYz1LWWOpzw==","shasum":"574e860149457a79a2efe788c459f0c3062d02ec","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/eventid/-/eventid-2.0.1.tgz","fileCount":7,"unpackedSize":20482,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhrnXgCRA9TVsSAnZWagAA5PYP/0ixNA927m1wONHwtNLb\nCTjiyWu7KzZR/kcAmTtn6aIebts39NLkVjtJxscQ8i4P2t8zfvSzTAh3Mai7\nyTyymEWXzeqXepE9THrfaKQloDfUni63V+Oj6c+gviMfphT3d77jf8Uk85SG\nr0QNj+FaYxBHt+auQmwXVMKlfHpeP7zq+sfouRuSNSlD1K/iGO8O5NKdZEJy\nyGMjsvAElvGzCQC/Fn4tFua/ia3LqTMZ0IY/mEOgSDpwL9DHOldCo/w0AZld\nP4KSwJOabysUbi5WhuQOpDvwjedAfLNg1kvXVQhtsi+Wgr6n18CXsKrXx+3Z\ney/N+vH+rSBB5A86/RcqvPhxTqxvrHj1u0R78cEWY95Lal6JRHzOoP7TMkVX\nCnGz5DQ0CCf2Hu3d2KdxRGAsX1/jmzsxaovzp2OhaGOz8stl+KbK6bJjJ1ce\nXx9PB7t7OWgmVvQgWMp4lcp9YIDArlITmhtP8HYJ2ePsBSc9INIp144rwtkZ\nS+yjblQatXQkPnno0VCUL8GdyUbeJfWjUTDUOe9hzGOPS4VZCYEknjWuhShU\nIM/Hlxco5mA2+aXCqxapi6/ioyWmJ6H4axBxek8I7h6v3Z5OdBQbACCmap/A\nDM6imcIZyPHZqu9UrOP4VTGg3BPzzqGcu86jg3U9m4jl+EzSio9uYzmRm+JH\n1WrS\r\n=LOvo\r\n-----END PGP SIGNATURE-----\r\n","size":7354,"noattachment":false},"_npmUser":{"name":"anonymous","email":"node-team-npm+wombot@google.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"mattloring@google.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eventid_2.0.1_1638823391918_0.9544513624522983"},"_hasShrinkwrap":false,"publish_time":1638823392050,"_cnpm_publish_time":1638823392050,"_cnpmcore_publish_time":"2021-12-16T20:57:26.009Z","contributors":[]},"2.0.0":{"name":"eventid","version":"2.0.0","description":"A utility for generating monotonically increasing unique event ids across a network of services.","main":"build/src/index.js","types":"build/src/index.d.ts","scripts":{"test":"c8 mocha build/test","lint":"gts check","license-check":"jsgl --local .","clean":"gts clean","compile":"tsc -p .","fix":"gts fix","prepare":"npm run compile","pretest":"npm run compile"},"repository":{"type":"git","url":"git+https://github.com/google/eventid-js.git"},"keywords":["uid"],"author":{"name":"Google Inc."},"license":"Apache-2.0","bugs":{"url":"https://github.com/google/eventid-js/issues"},"homepage":"https://github.com/google/eventid-js#readme","dependencies":{"d64":"^1.0.0","uuid":"^8.0.0"},"devDependencies":{"@types/mocha":"^9.0.0","@types/node":"^14.0.0","@types/uuid":"^8.0.0","c8":"^7.3.0","gts":"^3.0.0","js-green-licenses":"^3.0.0","mocha":"^9.0.0","typescript":"^4.0.0"},"engines":{"node":">=10"},"gitHead":"3731246a64e22da5e3fdc49a149eaf03f8ea0186","_id":"eventid@2.0.0","_nodeVersion":"14.17.5","_npmVersion":"6.14.14","dist":{"shasum":"884fb67da8cf528964240040ac7304de58d278d8","size":6736,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/eventid/-/eventid-2.0.0.tgz","integrity":"sha512-4CYGJ4e2ZkNSr89U/IGzUYOSqppRUCUz37HQX+xk3ArJwK3K1B7TI1PBeWb1umz3rDuMUwPzJCWR44JJS8yEnQ=="},"_npmUser":{"name":"anonymous","email":"node-team-npm+wombot@google.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"mattloring@google.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eventid_2.0.0_1630431966622_0.7137043320558836"},"_hasShrinkwrap":false,"publish_time":1630431966775,"_cnpm_publish_time":1630431966775,"_cnpmcore_publish_time":"2021-12-16T20:57:26.246Z","contributors":[]},"1.0.0":{"name":"eventid","version":"1.0.0","description":"A utility for generating monotonically increasing unique event ids across a network of services.","main":"build/src/index.js","types":"build/src/index.d.ts","scripts":{"test":"c8 mocha build/test","lint":"gts check","license-check":"jsgl --local .","clean":"gts clean","codecov":"c8 report --reporter=json && codecov -f coverage/*.json","compile":"tsc -p .","fix":"gts fix","prepare":"npm run compile","pretest":"npm run compile"},"repository":{"type":"git","url":"git+https://github.com/google/eventid-js.git"},"keywords":["uid"],"author":{"name":"Google Inc."},"license":"Apache-2.0","bugs":{"url":"https://github.com/google/eventid-js/issues"},"homepage":"https://github.com/google/eventid-js#readme","dependencies":{"d64":"^1.0.0","uuid":"^3.0.1"},"devDependencies":{"@types/mocha":"^5.2.6","@types/uuid":"^3.4.4","c8":"^6.0.0","codecov":"^3.6.1","gts":"^1.0.0","js-green-licenses":"^1.0.0","mocha":"^6.0.0","typescript":"~3.7.0"},"engines":{"node":">=8"},"gitHead":"20a013ef2c175db7c62bffda4d83117d49a7f901","_id":"eventid@1.0.0","_nodeVersion":"10.17.0","_npmVersion":"6.11.3","dist":{"shasum":"61dbfd1acbd68dba372e54e1e2a803e1aca027f2","size":6518,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/eventid/-/eventid-1.0.0.tgz","integrity":"sha512-4upSDsvpxhWPsmw4fsJCp0zj8S7I0qh1lCDTmZXP8V3TtryQKDI8CgQPN+e5JakbWwzaAX3lrdp2b3KSoMSUpw=="},"maintainers":[{"name":"anonymous","email":"mattloring@google.com"}],"_npmUser":{"name":"anonymous","email":"node-team-npm+wombot@google.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eventid_1.0.0_1572997147900_0.27462791946995413"},"_hasShrinkwrap":false,"publish_time":1572997148016,"_cnpm_publish_time":1572997148016,"_cnpmcore_publish_time":"2021-12-16T20:57:26.428Z","contributors":[]},"0.1.2":{"name":"eventid","version":"0.1.2","description":"A utility for generating monotonically increasing unique event ids across a network of services.","main":"lib/index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/test.js","lint":"jshint ."},"repository":{"type":"git","url":"git+https://github.com/google/eventid-js.git"},"keywords":["uid"],"author":{"name":"Google Inc."},"license":"Apache-2.0","bugs":{"url":"https://github.com/google/eventid-js/issues"},"homepage":"https://github.com/google/eventid-js#readme","dependencies":{"d64":"^1.0.0","uuid":"^3.0.1"},"devDependencies":{"jshint":"^2.9.4","mocha":"^3.2.0"},"gitHead":"ef28838ddce91cdd5dc6135e67f5c840cf5ab69b","_id":"eventid@0.1.2","_shasum":"0b232d3e244ea5b1d528984140ea69ac7ec89215","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"anonymous","email":"ofrobots@google.com"},"dist":{"shasum":"0b232d3e244ea5b1d528984140ea69ac7ec89215","size":6490,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/eventid/-/eventid-0.1.2.tgz","integrity":"sha512-458nni8g4TBrXStVH2OyCv/NirpTFlWfOFi4uSJxAm8ufLnx3bSOAGQBnZ0XYFpgIh/Qs6mVJgWxFjoT9yChdA=="},"maintainers":[{"name":"anonymous","email":"mattloring@google.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/eventid-0.1.2.tgz_1492438913685_0.22382657625712454"},"publish_time":1492438915663,"_hasShrinkwrap":false,"_cnpm_publish_time":1492438915663,"_cnpmcore_publish_time":"2021-12-16T20:57:26.617Z","contributors":[]},"0.1.1":{"name":"eventid","version":"0.1.1","description":"A utility for generating monotonically increasing unique event ids across a network of services.","main":"lib/index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/test.js","lint":"jshint ."},"repository":{"type":"git","url":"git+https://github.com/google/eventid-js.git"},"keywords":["uid"],"author":{"name":"Google Inc."},"license":"Apache-2.0","bugs":{"url":"https://github.com/google/eventid-js/issues"},"homepage":"https://github.com/google/eventid-js#readme","dependencies":{"d64":"^1.0.0","uuid":"^3.0.1"},"devDependencies":{"jshint":"^2.9.4","mocha":"^3.2.0"},"gitHead":"014a689da4a2c848f36c7000bcefd103de8dcf13","_id":"eventid@0.1.1","_shasum":"b17a81a666ac04df48cc84738d4eb7ea359689aa","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"anonymous","email":"ofrobots@google.com"},"dist":{"shasum":"b17a81a666ac04df48cc84738d4eb7ea359689aa","size":6225,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/eventid/-/eventid-0.1.1.tgz","integrity":"sha512-3caVGTHjSp+0c7eptxKl8y0TMbdV2ZBW3rGhxX654O277J1tE4m/1s4aXasx4pagxt3Qab5xe9NYVB9sLM2Svg=="},"maintainers":[{"name":"anonymous","email":"mattloring@google.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/eventid-0.1.1.tgz_1492438554984_0.35519179538823664"},"publish_time":1492438555270,"_hasShrinkwrap":false,"_cnpm_publish_time":1492438555270,"_cnpmcore_publish_time":"2021-12-16T20:57:27.042Z","contributors":[]},"0.1.0":{"name":"eventid","version":"0.1.0","description":"A utility for generating monotonically increasing unique event ids across a network of services.","main":"lib/index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/test.js","lint":"jshint ."},"repository":{"type":"git","url":"git+https://github.com/google/eventid-js.git"},"keywords":["uid"],"author":{"name":"Google Inc."},"license":"Apache-2.0","bugs":{"url":"https://github.com/google/eventid-js/issues"},"homepage":"https://github.com/google/eventid-js#readme","dependencies":{"d64":"^1.0.0","uuid":"^3.0.1"},"devDependencies":{"jshint":"^2.9.4","mocha":"^3.2.0"},"gitHead":"a62b65512e94a5bf23b041ba1a28c969303ce607","_id":"eventid@0.1.0","_shasum":"11ad252a9d106b9ad8f508cbe5a3549f28c133ee","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"anonymous","email":"ofrobots@google.com"},"dist":{"shasum":"11ad252a9d106b9ad8f508cbe5a3549f28c133ee","size":6035,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/eventid/-/eventid-0.1.0.tgz","integrity":"sha512-wJMBHU6sTKa5PTR+e40Y776n7LUqqYZCOfFX6Qv7sJD6r5e1VV2+MmC++xPSsXPgXXuxkcLlwY0czG+7amZgDA=="},"maintainers":[{"name":"anonymous","email":"mattloring@google.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/eventid-0.1.0.tgz_1488855319899_0.944132775766775"},"publish_time":1488855321514,"_hasShrinkwrap":false,"_cnpm_publish_time":1488855321514,"_cnpmcore_publish_time":"2021-12-16T20:57:27.577Z","contributors":[]}},"dist-tags":{"latest":"2.0.1"},"name":"eventid","time":{"created":"2022-01-27T17:18:23.652Z","modified":"2025-12-06T20:23:35.719Z","2.0.1":"2021-12-06T20:43:12.050Z","2.0.0":"2021-08-31T17:46:06.775Z","1.0.0":"2019-11-05T23:39:08.016Z","0.1.2":"2017-04-17T14:21:55.663Z","0.1.1":"2017-04-17T14:15:55.270Z","0.1.0":"2017-03-07T02:55:21.514Z"},"readme":"# eventid\n> Monotonically increasing per machine, globally unique eventids\n\n[![npm version](https://img.shields.io/npm/v/eventid.svg)](https://www.npmjs.org/package/eventid)\n[![Build Status](https://github.com/google/eventid-js/workflows/ci/badge.svg)](https://github.com/google/eventid-js/actions)\n[![Dependencies](https://david-dm.org/google/eventid-js.svg)](https://david-dm.org/google/eventid-js)\n[![Known Vulnerabilities](https://snyk.io/test/github/google/eventid-js/badge.svg)](https://snyk.io/test/github/google/eventid-js)\n\n***Note: This is not an official Google product.***\n\nAn eventId uniquely identifies an event across a network of services. It is\nglobally unique, and is monotically increasing locally. This makes eventids\nuseful for lexically comparable identifiers for events in a distributed system.\n\nThis can be used instead of timestamps – JavaScript timestamps only have\nmillisecond resolution making them unsuitable for the purpose of building\nmonotonically increasing local ids.\n\n\n## Installation\n\n```sh\n$ npm install eventid\n```\n\n## Usage\n\n```js\nconst EventId = require('eventid');\n\n// Instantiate a generator.\nconst eventId = new EventId();\n\n// Generate a globally unique identifier.\nconst id1 = eventId.new(); // -> \"..........37qqNkj4K24ulWyeuWxpZh\"\n// Use the same generator to get monotonically increasing local ids.\nconst id2 = eventId.new(); // -> \"..........77qqNkj4K24ulWyeuWxpZh\"\n// You can lexicographically compare the ids.\nassert(id1 < id2); // -> true\n\n// Another instance will use a different guid\nconst another = new EventId();\nconst id3 = another.new(); // -> \"..........5rkLYOc5W8ZAHAmVSyrixJ\"\n```\n\n## License\n\n[Apache 2.0](LICENSE)","users":{}}