@thi.ng/hex
Advanced tools
Comparing version 2.1.9 to 2.2.0
# Change Log | ||
- **Last updated**: 2022-08-01T14:53:59Z | ||
- **Last updated**: 2022-09-21T21:37:59Z | ||
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub) | ||
@@ -12,2 +12,8 @@ | ||
## [2.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hex@2.2.0) (2022-09-21) | ||
#### 🚀 Features | ||
- add U64BIG ([06bcf05](https://github.com/thi-ng/umbrella/commit/06bcf05)) | ||
## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hex@2.1.0) (2021-11-17) | ||
@@ -14,0 +20,0 @@ |
@@ -127,2 +127,4 @@ /** | ||
* | ||
* Also see {@link U64BIG} for `bigint` version. | ||
* | ||
* @param x - | ||
@@ -132,2 +134,8 @@ */ | ||
/** | ||
* Returns 64bit bigint as hex string. | ||
* | ||
* @param x | ||
*/ | ||
export declare const U64BIG: (x: bigint) => string; | ||
/** | ||
* Similar to {@link U64}, but takes the 64bit arg as 2x 32bit values. | ||
@@ -134,0 +142,0 @@ * |
@@ -128,2 +128,4 @@ const P32 = 0x100000000; | ||
* | ||
* Also see {@link U64BIG} for `bigint` version. | ||
* | ||
* @param x - | ||
@@ -133,2 +135,8 @@ */ | ||
/** | ||
* Returns 64bit bigint as hex string. | ||
* | ||
* @param x | ||
*/ | ||
export const U64BIG = (x) => U64HL(Number(x >> BigInt(32)), Number(x & BigInt(P32 - 1))); | ||
/** | ||
* Similar to {@link U64}, but takes the 64bit arg as 2x 32bit values. | ||
@@ -135,0 +143,0 @@ * |
{ | ||
"name": "@thi.ng/hex", | ||
"version": "2.1.9", | ||
"version": "2.2.0", | ||
"description": "Hex string formatters for 4/8/16/24/32/48/64bit words", | ||
@@ -37,8 +37,8 @@ "type": "module", | ||
"devDependencies": { | ||
"@microsoft/api-extractor": "^7.25.0", | ||
"@thi.ng/testament": "^0.2.10", | ||
"@microsoft/api-extractor": "^7.31.1", | ||
"@thi.ng/testament": "^0.3.0", | ||
"rimraf": "^3.0.2", | ||
"tools": "^0.0.1", | ||
"typedoc": "^0.22.17", | ||
"typescript": "^4.7.4" | ||
"typescript": "^4.8.3" | ||
}, | ||
@@ -73,3 +73,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "976ccd698cedaa60dcef2e69030a5eb98898cc4a\n" | ||
"gitHead": "973139c5aa3b50081020f4cc726a7cc330f77fc7\n" | ||
} |
<!-- This file is generated - DO NOT EDIT! --> | ||
# ![hex](https://media.thi.ng/umbrella/banners/thing-hex.svg?ec10b9fc) | ||
# ![hex](https://media.thi.ng/umbrella/banners-20220914/thing-hex.svg?d629ed84) | ||
@@ -13,4 +13,4 @@ [![npm version](https://img.shields.io/npm/v/@thi.ng/hex.svg)](https://www.npmjs.com/package/@thi.ng/hex) | ||
- [About](#about) | ||
- [Status](#status) | ||
- [Related packages](#related-packages) | ||
- [Status](#status) | ||
- [Related packages](#related-packages) | ||
- [Installation](#installation) | ||
@@ -26,3 +26,3 @@ - [Dependencies](#dependencies) | ||
### Status | ||
## Status | ||
@@ -33,3 +33,3 @@ **STABLE** - used in production | ||
### Related packages | ||
## Related packages | ||
@@ -61,3 +61,3 @@ - [@thi.ng/base-n](https://github.com/thi-ng/umbrella/tree/develop/packages/base-n) - Arbitrary base-n conversions w/ presets for base16/32/36/58/62/64/85, support for arrays & bigints | ||
Package sizes (gzipped, pre-treeshake): ESM: 370 bytes | ||
Package sizes (gzipped, pre-treeshake): ESM: 405 bytes | ||
@@ -64,0 +64,0 @@ ## Dependencies |
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
75543
8
553