path-to-sha1
Calculates a SHA-1 of a given path
Install
Using yarn:
yarn add path-to-sha1
or using npm:
npm install path-to-sha1
Usage
const pathToSHA1 = require('path-to-sha1')
const hash = await pathToSHA1('/path/to/file')
Calculates a SHA-1 of a given path
Using yarn:
yarn add path-to-sha1
or using npm:
npm install path-to-sha1
const pathToSHA1 = require('path-to-sha1')
const hash = await pathToSHA1('/path/to/file')
npm i path-to-sha1
25
0.0.1
MIT
1.45 kB
6