npm.io
0.0.1 • Published 7 years ago

path-to-hash

Licence
MIT
Version
0.0.1
Deps
1
Size
2 kB
Vulns
0
Weekly
0
Stars
3

path-to-hash

Calculates a given hash of a given path

Install

Using yarn:

yarn add path-to-hash

or using npm:

npm install path-to-hash

Usage

const pathToHash = require('path-to-hash')

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

Keywords