Socket
Socket
Sign inDemoInstall

scru64

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scru64 - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

cli.js

13

dist/index.js

@@ -660,2 +660,13 @@ /**

*/
export const scru64String = async () => (await scru64()).toString();
export const scru64String = async () => {
const DELAY = 64;
while (true) {
const value = GlobalGenerator.generate();
if (value !== undefined) {
return value.toString();
}
else {
await new Promise((resolve) => setTimeout(resolve, DELAY));
}
}
};

3

package.json
{
"name": "scru64",
"version": "0.3.1",
"version": "0.3.2",
"description": "SCRU64: Sortable, Clock-based, Realm-specifically Unique identifier",

@@ -9,2 +9,3 @@ "type": "module",

"exports": "./dist/index.js",
"bin": "./cli.js",
"files": [

@@ -11,0 +12,0 @@ "dist"

@@ -41,2 +41,14 @@ # SCRU64: Sortable, Clock-based, Realm-specifically Unique identifier

## Command-line interface
```bash
$ SCRU64_NODE_SPEC=42/8 npx scru64
0uc3xnefo50h
$ SCRU64_NODE_SPEC=42/8 npx scru64 -n 4
0uc3xnl3eas9
0uc3xnl3easa
0uc3xnl3easb
0uc3xnl3easc
```
## License

@@ -43,0 +55,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc