path-to-hash
Version:
Calculates a given hash of a given path
23 lines (16 loc) • 294 B
Markdown
# 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')
```