![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
infinite-sequence-generator
Advanced tools
An infinte set of keys that never ends, never repeats, is somewhat human readble and scales logarythmically.
Creates a sequence of strings that can be compared by > and < operators (and therefore sort). The sequence never ends (doesn't overflow like a number at 2^52) and the memory footprint scales logarithimcally.
Well it returns a generator that's yields a sequence of keys of all printable ASCII 7-bit character set and uses that set as digits.
Install dependency from npm
npm install infinite-sequence-generator
Then use it in the code as you like it:
const fini = require("infinite-sequence-generator");
const seq = fini();
seq.next().value; // __!
// or maybe as an iterator
let i = 0;
for (var key of seq) {
console.log(key);
if (i++ > 10) break;
}
You may add a sequence prefix if you like.
const seq = fini("AAA__");
console.log(seq.next().value); // AAA__!
You can add your own alphabet:
const seq = fini("-prefix-", '0123456789abcdef');
console.log(seq.next().value); // AAA__!
MIT Licensed, see LICENSE file.
FAQs
An infinte set of keys that never ends, never repeats, is somewhat human readble and scales logarythmically.
We found that infinite-sequence-generator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.