UNPKG

path-to-hash

Version:
23 lines (16 loc) 294 B
# 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') ```