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

@thi.ng/binary

Package Overview
Dependencies
Maintainers
1
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/binary - npm Package Compare versions

Comparing version 3.4.18 to 3.4.19

2

CHANGELOG.md
# Change Log
- **Last updated**: 2024-03-07T20:40:47Z
- **Last updated**: 2024-03-13T14:04:31Z
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)

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

@@ -7,7 +7,10 @@ import type { FnU2 } from "@thi.ng/api";

* @example
* ```ts
* ```ts tangle:../export/mask.ts
* import { defMask } from "@thi.ng/binary";
*
* defMask(1,31).toString(16) // 7ffffffe
* defMask(3,8).toString(16) // f8
* console.log(defMask(1,31).toString(16));
* // 7ffffffe
*
* console.log(defMask(3,8).toString(16));
* // f8
* ```

@@ -14,0 +17,0 @@ *

{
"name": "@thi.ng/binary",
"version": "3.4.18",
"version": "3.4.19",
"description": "100+ assorted binary / bitwise operations, conversions, utilities, lookup tables",

@@ -39,10 +39,10 @@ "type": "module",

"dependencies": {
"@thi.ng/api": "^8.9.29"
"@thi.ng/api": "^8.9.30"
},
"devDependencies": {
"@microsoft/api-extractor": "^7.40.1",
"esbuild": "^0.20.0",
"@microsoft/api-extractor": "^7.42.3",
"esbuild": "^0.20.1",
"rimraf": "^5.0.5",
"typedoc": "^0.25.7",
"typescript": "^5.3.3"
"typedoc": "^0.25.12",
"typescript": "^5.4.2"
},

@@ -137,3 +137,3 @@ "keywords": [

},
"gitHead": "69100942474942f7446ac645d59d91e7dfc352f9\n"
"gitHead": "7f3fcbd6c0462b0ce45afa141fe163d1f297fd51\n"
}

@@ -80,8 +80,19 @@ import type { FnN, FnN3 } from "@thi.ng/api";

* @example
* ```ts
* import { swizzle } from "@thi.ng/binary";
* ```ts tangle:../export/swizzle.ts
* import { swizzle8 } from "@thi.ng/binary";
*
* swizzle(0x12345678, 3, 2, 1, 0) // 0x78563412
* swizzle(0x12345678, 1, 0, 3, 2) // 0x34127856
* swizzle(0x12345678, 2, 2, 0, 0) // 0x56561212
* console.log(
* swizzle8(0x12345678, 3, 2, 1, 0).toString(16)
* );
* // 0x78563412
*
* console.log(
* swizzle8(0x12345678, 1, 0, 3, 2).toString(16)
* );
* // 0x34127856
*
* console.log(
* swizzle8(0x12345678, 2, 2, 0, 0).toString(16)
* );
* // 0x56561212
* ```

@@ -114,9 +125,13 @@ *

* @example
* ```ts
* ```ts tangle:../export/mux.ts
* import { mux } from "@thi.ng/binary";
*
* mux(0x12345678, 0xaaaa5555, 0xffff0000)
* console.log(
* mux(0x12345678, 0xaaaa5555, 0xffff0000)
* );
* // 0xaaaa5678
*
* mux(0x12345678, 0xaaaa5555, 0x0000ffff)
* console.log(
* mux(0x12345678, 0xaaaa5555, 0x0000ffff)
* );
* // 0x12345555

@@ -140,6 +155,8 @@ * ```

* @example
* ```ts
* ```ts tangle:../export/flip16.ts
* import { flip16 } from "@thi.ng/binary";
*
* flip16(0x12345678)
* console.log(
* flip16(0x12345678).toString(16)
* );
* // 0x56781234

@@ -146,0 +163,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