# nodehash

> simplifies access to node hash functions

Latest version **1.0.4** (published 2016-08-16) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install nodehash
pnpm add nodehash
yarn add nodehash
bun add nodehash
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2016-08-16 |
| First published | 2016-05-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Lossless GmbH |
| Maintainers | lossless |
| Keywords | hash, node, sha256, stream, filehash |

## Links

- npm: https://www.npmjs.com/package/nodehash
- Repository: https://github.com/pushrocks/nodehash
- Homepage: https://github.com/pushrocks/nodehash#readme
- Issues: https://github.com/pushrocks/nodehash/issues
- npm.io page: https://npm.io/package/nodehash

## Dependencies (5)

- [q](https://npm.io/package/q.md) ^1.4.1
- [@types/q](https://npm.io/package/@types/q.md) 0.x.x
- [through2](https://npm.io/package/through2.md) ^2.0.1
- [typings-global](https://npm.io/package/typings-global.md) ^1.0.6
- [@types/through2](https://npm.io/package/@types/through2.md) 0.x.x

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2016-08-16
- 1.0.3 — 2016-08-16
- 1.0.2 — 2016-08-16
- 1.0.1 — 2016-08-15
- 1.0.0 — 2016-05-23

## README

# nodehash
simplifies access to node hash functions. TypeScript Ready

## Status
[![build status](https://gitlab.com/pushrocks/nodehash/badges/master/build.svg)](https://gitlab.com/pushrocks/nodehash/commits/master)

## Usage
We recommend the use of TypeScript for best in class intellisense.

```typescript
import * as nodehash from "nodehash";

// from stream
let readStream = fs.createReadStream("./somefile.txt")
nodehash.sha256FromStream(readStream)
    .then((resultString){
        console.log(resultString); // prints hash of the file
    });

// from file
nodehash.sha256FromFile("./somefile.txt")
    .then((resultString){
        console.log(resultString); // prints hash of the file
    });

// from string
nodehash.sha256FromString("some weird random string")
    .then((resultString){
        console.log(resultString); // prints hash of the file
    });

let hashString = nodehash.sha256FromStringSync("some weird random string");
```

---
_Source: https://npm.io/package/nodehash · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
