Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@thi.ng/idgen

Package Overview
Dependencies
Maintainers
1
Versions
143
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/idgen - npm Package Compare versions

Comparing version 2.2.30 to 2.2.31

2

CHANGELOG.md
# Change Log
- **Last updated**: 2024-03-01T15:22:50Z
- **Last updated**: 2024-03-02T14:05:53Z
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)

@@ -5,0 +5,0 @@

{
"name": "@thi.ng/idgen",
"version": "2.2.30",
"version": "2.2.31",
"description": "Generator of opaque numeric identifiers with optional support for ID versioning and efficient re-use",

@@ -92,3 +92,3 @@ "type": "module",

},
"gitHead": "d660ae8fd1bf64d919b4334f19509f1f539d70f6\n"
"gitHead": "df9e312af741d87e6b450afcfea6a6e381662b1e\n"
}

@@ -106,9 +106,7 @@ <!-- This file is generated - DO NOT EDIT! -->

### ID generator with 16 bit range and no versioning
```ts
import { idgen } from "@thi.ng/idgen";
```
### ID generator with 16 bit range and no versioning
```ts
const ids = idgen(16, 0);

@@ -146,2 +144,4 @@

```ts
import { idgen } from "@thi.ng/idgen";
// the 8bit version range is being deduced automatically (32-24 = 8),

@@ -179,2 +179,4 @@ // but can also be overwritten

```ts
import { idgen } from "@thi.ng/idgen";
const ids = ig.idgen(8);

@@ -181,0 +183,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