Socket
Socket
Sign inDemoInstall

uint8arrays

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uint8arrays - npm Package Compare versions

Comparing version 2.0.5 to 2.1.0

dist/xor.d.ts

9

CHANGELOG.md

@@ -0,1 +1,10 @@

# [2.1.0](https://github.com/achingbrain/uint8arrays/compare/v2.0.5...v2.1.0) (2021-02-04)
### Features
* add xor function ([82e4129](https://github.com/achingbrain/uint8arrays/commit/82e41296034e4890f4c7cf4dbd7a24693d03cb7f))
## [2.0.5](https://github.com/achingbrain/uint8arrays/compare/v2.0.4...v2.0.5) (2020-12-18)

@@ -2,0 +11,0 @@

5

package.json
{
"name": "uint8arrays",
"version": "2.0.5",
"version": "2.1.0",
"description": "Utility functions to make dealing with Uint8Arrays easier",

@@ -25,2 +25,3 @@ "main": "index.js",

"to-string.js",
"xor.js",
"dist/*.ts",

@@ -50,3 +51,3 @@ "dist/*.map",

"devDependencies": {
"aegir": "^30.1.0"
"aegir": "^30.3.0"
},

@@ -53,0 +54,0 @@ "contributors": [

@@ -16,2 +16,4 @@ # Uint8Arrays <!-- omit in toc -->

- [Example](#example-4)
- [xor(a, b)](#xora-b)
- [Example](#example-5)

@@ -116,1 +118,13 @@ ## API

```
### xor(a, b)
Returns a `Uint8Array` containing `a` and `b` xored together.
#### Example
```js
const xor = require('uint8arrays/xor')
console.info(xor(Uint8Array.from([1, 0]), Uint8Array.from([0, 1]))) // Uint8Array[1, 1]
```
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