@nhz.io/nw-treehash
v1.0.3
Published
NWJS treehash calculator stream
Downloads
11
Maintainers
Readme
Install
npm i -D @nhz.io/nw-treehash
Usage
// treehash.js
const {createReadStream} = require('fs')
const through = require('through2')
const treehash = require('@nhz.io/nw-treehash')
const {fixBase64} = require('@nhz.io/nw-treehash/lib/helpers')
createReadStream(process.argv[2] || process.argv[1])
.pipe(treehash())
.pipe(through((hash, enc, cb) =>
cb(null, fixBase64(hash.toString('base64')))
))
.pipe(process.stdout)
node treehash.js
...
7rzmHkbwr5NzPjalKEVuArbxg--rbyt5tXdvMYUHXpQ
Dev
git clone https://github.com/nhz-io/nw-treehash
cd nw-treehash
npm i
npm start
Docs
npm run doc
Coverage
npm run coverage
See also
- https://github.com/nwjs/nw.js/blob/nw18/tools/sign/sign.py
- https://github.com/nwjs/nw.js/blob/nw18/tools/payload.cc