sha256-uint8array
Advanced tools
Comparing version 0.10.5 to 0.10.6
{ | ||
"name": "sha256-uint8array", | ||
"description": "Fast SHA-256 digest hash based on Uint8Array, pure JavaScript.", | ||
"version": "0.10.5", | ||
"version": "0.10.6", | ||
"author": "Yusuke Kawasaki <u-suke@kawa.net>", | ||
@@ -22,11 +22,16 @@ "bugs": { | ||
"jshashes": "^1.0.8", | ||
"jssha": "^3.3.0", | ||
"jssha": "^3.3.1", | ||
"mocha": "^10.2.0", | ||
"sha.js": "^2.4.11", | ||
"terser": "^5.16.4", | ||
"typescript": "^4.9.5" | ||
"terser": "^5.19.2", | ||
"typescript": "^5.1.6" | ||
}, | ||
"exports": { | ||
"require": "./lib/sha256-uint8array.js", | ||
"import": "./dist/sha256-uint8array.mjs" | ||
".": { | ||
"require": "./lib/sha256-uint8array.js", | ||
"import": { | ||
"default": "./dist/sha256-uint8array.mjs", | ||
"types": "./types/sha256-uint8array.d.ts" | ||
} | ||
} | ||
}, | ||
@@ -33,0 +38,0 @@ "files": [ |
@@ -12,3 +12,3 @@ # sha256-uint8array | ||
```js | ||
const {createHash} = require("sha256-uint8array"); | ||
import {createHash} from "sha256-uint8array"; | ||
@@ -28,6 +28,8 @@ const text = ""; | ||
## ES MODULE | ||
## CJS | ||
Both ES Modules and CommonJS supported. | ||
```js | ||
import {createHash} from "sha256-uint8array"; | ||
const {createHash} = require("sha256-uint8array"); | ||
``` | ||
@@ -90,9 +92,8 @@ | ||
## BROWSER | ||
## WEB BROWSERS | ||
The minified version of the library is also available for browsers via | ||
[jsDelivr](https://www.jsdelivr.com/package/npm/sha256-uint8array) CDN. | ||
- The minified build of the library is also available for Web browsers via | ||
[jsDelivr CDN](https://www.jsdelivr.com/package/npm/sha256-uint8array). | ||
- https://cdn.jsdelivr.net/npm/sha256-uint8array/dist/sha256-uint8array.min.js | ||
- Live Demo https://kawanet.github.io/sha256-uint8array/ | ||
- Minified https://cdn.jsdelivr.net/npm/sha256-uint8array/dist/sha256-uint8array.min.js | ||
@@ -99,0 +100,0 @@ ```html |
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
33223
164