https://github.com/dashpay/wasm-x11-hash
WASM binding for X11 hashing algorithm
https://github.com/dashpay/wasm-x11-hash
Last synced: 12 months ago
JSON representation
WASM binding for X11 hashing algorithm
- Host: GitHub
- URL: https://github.com/dashpay/wasm-x11-hash
- Owner: dashpay
- License: mit
- Created: 2022-06-17T08:25:11.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-27T12:59:35.000Z (almost 4 years ago)
- Last Synced: 2024-04-26T19:21:40.620Z (about 2 years ago)
- Language: C
- Size: 691 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wasm-x11-hash
[](https://www.npmjs.com/package/wasm-x11-hash)
[](https://github.com/dashevo/wasm-x11-hash/actions/workflows/test_and_release.yml)
[](https://github.com/dashevo/wasm-x11-hash/releases/latest)
[](https://github.com/RichardLitt/standard-readme)
WASM binding for X11 hashing algorithm written in C
## Installation and usage
_[Buffer](https://github.com/feross/buffer) polyfill is required for usage in browsers_
- `$ npm install wasm-x11-hash`
```javascript
const X11 = require('wasm-x11-hash');
X11().then(x11 => {
const hash = x11.digest('hello world')
});
```
## Build and test
_Docker v20+ is required_
- `$ npm run build`
- `$ npm run test`