Installations
npm install uid-number-bands
Developer Guide
Typescript
No
Module System
N/A
Min. Node Version
>=0.8.0
NPM Version
1.2.18
Score
71
Supply Chain
98.3
Quality
75.4
Maintenance
100
Vulnerability
99.6
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Love this project? Help keep it running — sponsor us today! 🚀
Developer
markcode
Download Statistics
Total Downloads
6,026
Last Day
1
Last Week
5
Last Month
23
Last Year
232
GitHub Statistics
36 Commits
1 Watching
1 Branches
1 Contributors
Bundle Size
1.06 kB
Minified
541.00 B
Minified + Gzipped
Package Meta Information
Latest Version
0.0.9
Package Id
uid-number-bands@0.0.9
Size
4.44 kB
NPM Version
1.2.18
Total Downloads
Cumulative downloads
Total Downloads
6,026
Last day
0%
1
Compared to previous day
Last week
-61.5%
5
Compared to previous week
Last month
-20.7%
23
Compared to previous month
Last year
-3.3%
232
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
No dependencies detected.
Unique ID number generator within band ranges
Unique identifier (ID) number generator within band ranges, by multiple generators in sequential order. Generated as a node.js module, however could be adapted for other systems.
Goals
- to be unique.
- to be a integer.
- to be represented as a nanosecond.
- to be issued sequentially.
- to be scalable by multiple generators.
Reason
This schema, was developed for Kurunt, the scalable message processing framework, where you have multiple inputs receiving messages for processing that each require a unique ID represented as a sequential integer in nanosecond format.
Examples
1374207372000000001
1374207372000000002
1374207372000000003
...
Usage
1var uidNumberBands = require('uid-number-bands'); 2 3var BAND = 0; 4var BANDS = 100; 5 6uidNumberBands.init(BAND, BANDS, function() { 7 8 var id = uidNumberBands.make(); 9 console.log( 'id: ' + id ); 10 11 var idNormalized = uidNumberBands.normalize(id); 12 console.log( 'idNormalized: ' + idNormalized ); 13 14}); 15
Limitations
- A maximum of 1 billion IDs can be issued per second with a 64 bit system.
- This ID schema will exceed the nanoseconds 19 chars when unixtime exceeds 9999999999 on Sat, 20 Nov, 2286 17:46:39 GMT.
- Because nanoseconds exceeds ECMA (javascripts) largest number, returned as string representing nanosecond integer.
License
Apache 2.0
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE-APACHE:0
- Warn: project license file does not contain an FSF or OSI license.
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
3
/10
Last Scanned on 2025-01-27
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