{"_id":"eventid","_rev":"4104759","name":"eventid","description":"A utility for generating monotonically increasing unique event ids across a network of services.","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"google-admin","email":""},{"name":"google-wombot","email":""},{"name":"matthewloring","email":"mattloring@google.com"},{"name":"ofrobots","email":""}],"time":{"modified":"2026-01-11T18:51:02.000Z","created":"2017-03-07T02:55:21.514Z","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"},"users":{},"author":{"name":"Google Inc."},"repository":{"type":"git","url":"git+https://github.com/google/eventid-js.git"},"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":{"shasum":"574e860149457a79a2efe788c459f0c3062d02ec","size":7354,"noattachment":false,"key":"/eventid/-/eventid-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/eventid/download/eventid-2.0.1.tgz"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"directories":{},"maintainers":[{"name":"google-admin","email":""},{"name":"google-wombot","email":""},{"name":"matthewloring","email":"mattloring@google.com"},{"name":"ofrobots","email":""}],"_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"},"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,"key":"/eventid/-/eventid-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eventid/download/eventid-2.0.0.tgz"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"directories":{},"maintainers":[{"name":"google-admin","email":""},{"name":"google-wombot","email":""},{"name":"matthewloring","email":"mattloring@google.com"},{"name":"ofrobots","email":""}],"_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"},"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,"key":"/eventid/-/eventid-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eventid/download/eventid-1.0.0.tgz"},"maintainers":[{"name":"google-admin","email":""},{"name":"google-wombot","email":""},{"name":"matthewloring","email":"mattloring@google.com"},{"name":"ofrobots","email":""}],"_npmUser":{"name":"google-wombot","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"},"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":"ofrobots","email":"ofrobots@google.com"},"dist":{"shasum":"0b232d3e244ea5b1d528984140ea69ac7ec89215","size":6490,"noattachment":false,"key":"/eventid/-/eventid-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/eventid/download/eventid-0.1.2.tgz"},"maintainers":[{"name":"google-admin","email":""},{"name":"google-wombot","email":""},{"name":"matthewloring","email":"mattloring@google.com"},{"name":"ofrobots","email":""}],"_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"},"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":"ofrobots","email":"ofrobots@google.com"},"dist":{"shasum":"b17a81a666ac04df48cc84738d4eb7ea359689aa","size":6225,"noattachment":false,"key":"/eventid/-/eventid-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/eventid/download/eventid-0.1.1.tgz"},"maintainers":[{"name":"google-admin","email":""},{"name":"google-wombot","email":""},{"name":"matthewloring","email":"mattloring@google.com"},{"name":"ofrobots","email":""}],"_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"},"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":"ofrobots","email":"ofrobots@google.com"},"dist":{"shasum":"11ad252a9d106b9ad8f508cbe5a3549f28c133ee","size":6035,"noattachment":false,"key":"/eventid/-/eventid-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eventid/download/eventid-0.1.0.tgz"},"maintainers":[{"name":"google-admin","email":""},{"name":"google-wombot","email":""},{"name":"matthewloring","email":"mattloring@google.com"},{"name":"ofrobots","email":""}],"_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"}},"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)\n","_attachments":{},"homepage":"https://github.com/google/eventid-js#readme","bugs":{"url":"https://github.com/google/eventid-js/issues"},"license":"Apache-2.0"}