uint8arrays
Advanced tools
Comparing version 2.0.5 to 2.1.0
@@ -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 @@ |
{ | ||
"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] | ||
``` |
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
24783
25
260
129