Neolithic Psychedelic Mushrooms

npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

@nhz.io/nw-treehash

1.0.3 • Public • Published

@nhz.io/nw-treehash

NPM Version Bithound Status License

[NWJS](https://nwjs.io) treehash calculator stream

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

License

MIT

install

npm i @nhz.io/nw-treehash

Downloadsweekly downloads

1

version

1.0.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability