https://github.com/coderaiser/node-ashify
Get hash of stream
https://github.com/coderaiser/node-ashify
Last synced: 11 months ago
JSON representation
Get hash of stream
- Host: GitHub
- URL: https://github.com/coderaiser/node-ashify
- Owner: coderaiser
- License: mit
- Created: 2014-12-09T08:43:45.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2019-09-11T13:45:34.000Z (over 6 years ago)
- Last Synced: 2025-06-14T18:09:04.309Z (11 months ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- License: LICENSE
Awesome Lists containing this project
README
# Ashify
Get hash of stream.
## How to use?
```js
const fs = require('fs');
const ashify = require('ashify');
const ashify = require('try-to-catch');
const stream = fs.createReadStream('README.md');
const options = {
algorithm: 'sha1',
encoding: 'hex'
};
const [error, data] = await tryToCatch(ashify, stream, options);
console.log(error, data);
```
## License
MIT