wasm-x11-hash
Version:
WASM JS binding for X11 hashing algorithm
27 lines (19 loc) • 1.01 kB
Markdown
# 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`