# path-to-hash

> Calculates a given hash of a given path

Latest version **0.0.1** (published 2018-12-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install path-to-hash
pnpm add path-to-hash
yarn add path-to-hash
bun add path-to-hash
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2018-12-28 |
| First published | 2018-12-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 1 |
| Unpacked size | 1.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Dimitar Nestorov |
| Maintainers | dimitarnestorov |
| Keywords | path, file, checksum, hash, hex, base64, crypto |

## Links

- npm: https://www.npmjs.com/package/path-to-hash
- Repository: git@github.com:dimitarnestorov/file-to-hash
- Homepage: https://github.com/dimitarnestorov/file-to-hash/tree/master/packages/path-to-hash
- npm.io page: https://npm.io/package/path-to-hash

## Dependencies (1)

- [data-to-hash](https://npm.io/package/data-to-hash.md) ^0.0.1

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 0.0.1 (latest) — 2018-12-28

## README

# path-to-hash

> Calculates a given hash of a given path

## Install

Using yarn:
```sh
yarn add path-to-hash
```

or using npm:
```sh
npm install path-to-hash
```

## Usage
```javascript
const pathToHash = require('path-to-hash')

const hash = await pathToHash('sha256', '/path/to/file')
```

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