Gathering detailed insights and metrics for eventid
Gathering detailed insights and metrics for eventid
Gathering detailed insights and metrics for eventid
Gathering detailed insights and metrics for eventid
Monotonically increasing per machine, globally unique eventids for JavaScript
npm install eventid
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
75 Stars
149 Commits
20 Forks
6 Watching
17 Branches
9 Contributors
Updated on 25 Oct 2024
TypeScript (74.32%)
JavaScript (25.68%)
Cumulative downloads
Total Downloads
Last day
-17.7%
288,244
Compared to previous day
Last week
-1%
1,759,350
Compared to previous week
Last month
12.2%
7,467,425
Compared to previous month
Last year
125%
63,163,559
Compared to previous year
1
Monotonically increasing per machine, globally unique eventids
Note: This is not an official Google product.
An eventId uniquely identifies an event across a network of services. It is globally unique, and is monotically increasing locally. This makes eventids useful for lexically comparable identifiers for events in a distributed system.
This can be used instead of timestamps – JavaScript timestamps only have millisecond resolution making them unsuitable for the purpose of building monotonically increasing local ids.
1$ npm install eventid
1const EventId = require('eventid'); 2 3// Instantiate a generator. 4const eventId = new EventId(); 5 6// Generate a globally unique identifier. 7const id1 = eventId.new(); // -> "..........37qqNkj4K24ulWyeuWxpZh" 8// Use the same generator to get monotonically increasing local ids. 9const id2 = eventId.new(); // -> "..........77qqNkj4K24ulWyeuWxpZh" 10// You can lexicographically compare the ids. 11assert(id1 < id2); // -> true 12 13// Another instance will use a different guid 14const another = new EventId(); 15const id3 = another.new(); // -> "..........5rkLYOc5W8ZAHAmVSyrixJ"
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
Found 27/28 approved changesets -- score normalized to 9
Reason
dependency not pinned by hash detected -- score normalized to 5
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
12 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More