{"_id":"eventid","_rev":"33-00e2f93f501208d1d93c3385753c20cc","name":"eventid","description":"A utility for generating monotonically increasing unique event ids across a network of services.","dist-tags":{"latest":"2.0.1"},"versions":{"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","tarball":"https://registry.npmjs.org/eventid/-/eventid-0.1.0.tgz","integrity":"sha512-wJMBHU6sTKa5PTR+e40Y776n7LUqqYZCOfFX6Qv7sJD6r5e1VV2+MmC++xPSsXPgXXuxkcLlwY0czG+7amZgDA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA95U6bxpRqvEOjqijgICaIlfSWUxz8ib4DO2U6UUUVIAiEAu5jNT8gD72wTJ9are+HCCLzRjWuMGVGLD40Z5RjszCM="}]},"maintainers":[{"name":"ofrobots","email":"ofrobots@google.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/eventid-0.1.0.tgz_1488855319899_0.944132775766775"}},"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","tarball":"https://registry.npmjs.org/eventid/-/eventid-0.1.1.tgz","integrity":"sha512-3caVGTHjSp+0c7eptxKl8y0TMbdV2ZBW3rGhxX654O277J1tE4m/1s4aXasx4pagxt3Qab5xe9NYVB9sLM2Svg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOD5956ApPzqiUMJReZwEppSbJtWFbTb0EWAJt9l2MjwIgdpl5G+DtUMnzwaNFLNA1orgv0fB5otMZGpEWCj2Opz0="}]},"maintainers":[{"name":"google","email":"github-admin@google.com"},{"name":"matthewloring","email":"mattloring@google.com"},{"name":"ofrobots","email":"ofrobots@google.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/eventid-0.1.1.tgz_1492438554984_0.35519179538823664"}},"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","tarball":"https://registry.npmjs.org/eventid/-/eventid-0.1.2.tgz","integrity":"sha512-458nni8g4TBrXStVH2OyCv/NirpTFlWfOFi4uSJxAm8ufLnx3bSOAGQBnZ0XYFpgIh/Qs6mVJgWxFjoT9yChdA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICQJ+rH61PxycU3z80ERlDU/ajm0mIgqT20hlNhH96UIAiB1LCJVNko1yx3qUQ4YnsgyDp5/HVO6rFlsxOPiwWaIsA=="}]},"maintainers":[{"name":"google","email":"github-admin@google.com"},{"name":"matthewloring","email":"mattloring@google.com"},{"name":"ofrobots","email":"ofrobots@google.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/eventid-0.1.2.tgz_1492438913685_0.22382657625712454"}},"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":{"integrity":"sha512-4upSDsvpxhWPsmw4fsJCp0zj8S7I0qh1lCDTmZXP8V3TtryQKDI8CgQPN+e5JakbWwzaAX3lrdp2b3KSoMSUpw==","shasum":"61dbfd1acbd68dba372e54e1e2a803e1aca027f2","tarball":"https://registry.npmjs.org/eventid/-/eventid-1.0.0.tgz","fileCount":7,"unpackedSize":18064,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdwggcCRA9TVsSAnZWagAAa/cP/1ZDWJf58peKccXkHBoD\nDse7phg5jpD7IiEoDBeyXhlKYeCYd1ELfXdASv8ztVE4R2vHwh3CjQm46xnw\n8uSTt45itLqyy8dCmRU2g5zsk0QtokNntBTBpptrjyuv/Hpsl11N38PzayKp\nxXXrLrARc1MM9z+/NTaSyfcx0SmLr/e80LTVM+ae79CrDU+Gi1s0Dg6x9o0N\n4DfwPbEYV+PzGhkKqll7/pehQ8GuzbHyaTEQkTc4O6IFYs5sAuE4FVUsekrg\njdSWxYCy7PvRtLW4BEjc7K/1LnhhC13XNCBsAHR/UumgUzyxYO+lrx8Z2weC\nkgZjcW7ibTyH2UGjvh+U88g0vWxdrRWJAf4cjsZ/JDYqf2MGqVDcBg05reea\ny9Qfs6eL2eoo9V8Bm5ANmrxWBeh0S6bzBXquDDUNW58kPl9dVNi/0/78ixu+\nXChrCWOw7bEG0vOioQ7BEBhEH+evZjn9rsRXBuxkr9AY5br6akc9AcBV5Ama\nHt+mRnWF5nIpYHVTBtJFhdva84X+9m8f8VQCbTTwFxvBYcztGt8SZfbor0iG\nMbDW9j4tphUFayDBoZUWMIwZU49EqX9TZLUmjOHPOgdONZ/qphkz0I4gtsRo\nU5ZGcoW/nmk3JP0oZRyvcIO2k+TEEcIzUuLP45xyepmP6fyXIj5myL+VY8Bc\nQkE4\r\n=A34x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDfBMj4FZN9bT1wJcDb8Ltfn/Z8d1LP/hrtB7eeLl6xFAiAGh7q5VSKL/LnSurgFs9SV4o5pPeYaEexErTZ1T8Z5Xw=="}]},"maintainers":[{"email":"github-admin@google.com","name":"google-admin"},{"email":"node-team-npm+wombot@google.com","name":"google-wombot"},{"email":"mattloring@google.com","name":"matthewloring"},{"email":"ofrobots@google.com","name":"ofrobots"}],"_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},"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":{"integrity":"sha512-4CYGJ4e2ZkNSr89U/IGzUYOSqppRUCUz37HQX+xk3ArJwK3K1B7TI1PBeWb1umz3rDuMUwPzJCWR44JJS8yEnQ==","shasum":"884fb67da8cf528964240040ac7304de58d278d8","tarball":"https://registry.npmjs.org/eventid/-/eventid-2.0.0.tgz","fileCount":7,"unpackedSize":18865,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLmreCRA9TVsSAnZWagAApPsP/RU8Fj+RB09nhe/0zanX\nHZWqpqcVLqyeRtg6JtXKUwcdmF5ZvlDAG0WF5kV70JbYnBk4hFH4q8LrmDbN\nEDxPFFM1B6CnymkWAxvgt9lwOY4smrizQ7FpMS1BU9DfPIOuXlbCgLl4+Tie\nudMXUqHi5FjHkJfdVYMStCf22usENJ6/fmBdC/W9r2Dxw1sZVJlFrOnBmmRX\nNU7t76zOIt4AJk7xZaNd7Gu7eM+uZ3PHGBrioGz6bgLcasL6h/LQ7c1DI4fF\nNNBYhMPrIY5bUdBBk0wHEqg72ryZkHyLQBLocmAKTY1tkDeIEhVSn6zwBNJK\nOnT/3bziebnQnq1BGEmtU9CufrlrmwhAB9SAjhXROU9JNwD3C3+m7Q6FhV4T\nOHU19vlLvkm7pHOwSMhsci05FpJ3ZIyDn8TM14w59tNtapHuwsCF61ODWfQw\n+VMBAwAixTt+PWZKLZDgy7rbzlh9U1+GfyOGiSKgzPLOQ7Q6FzRIsftMDlrB\nncJq9iB9fNK6e/EjyvAmAAHI2oCPb+HDrCLtOdhCdv7XzerfLlu83RjprvtT\nLgJpsVNwc3v80/0WhYuvgeLcrt0/ymU39DPBf61P3NXNGq+01llX7CzpR9a7\ngn/WHOnQ63fwRVBDoF8CYeFUebPa9B8frW+0xe6z8Epa9zsKsVc6folfEPu4\nl49Z\r\n=S80d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDxtQOr5HYL+h7+R0DigDZOWzdQYoK+EasJibfziOpZMAiEAym4tm5RoeyGS9LLjv+qGJGe3vlYNnwgnjKjUvhoVILY="}]},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"directories":{},"maintainers":[{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},{"name":"ofrobots","email":"ofrobots@google.com"},{"name":"matthewloring","email":"mattloring@google.com"},{"name":"google-admin","email":"github-admin@google.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eventid_2.0.0_1630431966622_0.7137043320558836"},"_hasShrinkwrap":false},"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":"https://registry.npmjs.org/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","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF72lMts7OHE0Dw09Jr9huqrCBJitjaKffNA+v5+y4pjAiEAq7MdVfhYvgwXnWPXyQvykRdn8kR9j7RdEg0NpBc/cGM="}]},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"directories":{},"maintainers":[{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},{"name":"ofrobots","email":"ofrobots@google.com"},{"name":"matthewloring","email":"mattloring@google.com"},{"name":"google-admin","email":"github-admin@google.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eventid_2.0.1_1638823391918_0.9544513624522983"},"_hasShrinkwrap":false}},"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","maintainers":[{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},{"name":"ofrobots","email":"ofrobots@google.com"},{"name":"matthewloring","email":"mattloring@google.com"},{"name":"google-admin","email":"github-admin@google.com"}],"time":{"modified":"2022-06-17T21:33:59.885Z","created":"2017-03-07T02:55:21.514Z","0.1.0":"2017-03-07T02:55:21.514Z","0.1.1":"2017-04-17T14:15:55.270Z","0.1.2":"2017-04-17T14:21:55.663Z","1.0.0":"2019-11-05T23:39:08.016Z","2.0.0":"2021-08-31T17:46:06.775Z","2.0.1":"2021-12-06T20:43:12.050Z"},"homepage":"https://github.com/google/eventid-js#readme","keywords":["uid"],"repository":{"type":"git","url":"git+https://github.com/google/eventid-js.git"},"author":{"name":"Google Inc."},"bugs":{"url":"https://github.com/google/eventid-js/issues"},"license":"Apache-2.0","readmeFilename":"README.md"}