@thi.ng/binary
Advanced tools
Comparing version 3.4.14 to 3.4.15
# Change Log | ||
- **Last updated**: 2024-02-22T11:59:16Z | ||
- **Last updated**: 2024-02-25T14:07:53Z | ||
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub) | ||
@@ -5,0 +5,0 @@ |
@@ -8,2 +8,4 @@ import type { FnU2 } from "@thi.ng/api"; | ||
* ```ts | ||
* import { defMask } from "@thi.ng/binary"; | ||
* | ||
* defMask(1,31).toString(16) // 7ffffffe | ||
@@ -10,0 +12,0 @@ * defMask(3,8).toString(16) // f8 |
{ | ||
"name": "@thi.ng/binary", | ||
"version": "3.4.14", | ||
"version": "3.4.15", | ||
"description": "100+ assorted binary / bitwise operations, conversions, utilities, lookup tables", | ||
@@ -38,3 +38,3 @@ "type": "module", | ||
"dependencies": { | ||
"@thi.ng/api": "^8.9.25" | ||
"@thi.ng/api": "^8.9.26" | ||
}, | ||
@@ -136,3 +136,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "4513a1c703bdbf0f0867f03e547e47692e415fac\n" | ||
"gitHead": "6e20f80dd9df1c8055ffa3c1e4d6f7598add0c0b\n" | ||
} |
@@ -81,2 +81,4 @@ import type { FnN, FnN3 } from "@thi.ng/api"; | ||
* ```ts | ||
* import { swizzle } from "@thi.ng/binary"; | ||
* | ||
* swizzle(0x12345678, 3, 2, 1, 0) // 0x78563412 | ||
@@ -113,2 +115,4 @@ * swizzle(0x12345678, 1, 0, 3, 2) // 0x34127856 | ||
* ```ts | ||
* import { mux } from "@thi.ng/binary"; | ||
* | ||
* mux(0x12345678, 0xaaaa5555, 0xffff0000) | ||
@@ -137,2 +141,4 @@ * // 0xaaaa5678 | ||
* ```ts | ||
* import { flip16 } from "@thi.ng/binary"; | ||
* | ||
* flip16(0x12345678) | ||
@@ -139,0 +145,0 @@ * // 0x56781234 |
54290
986
Updated@thi.ng/api@^8.9.26