path-to-hash
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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')

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i path-to-hash

    Weekly Downloads

    244

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    1.83 kB

    Total Files

    6

    Last publish

    Collaborators

    • dimitarnestorov