@thi.ng/idgen
Advanced tools
Comparing version 2.2.30 to 2.2.31
# 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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38049
223