Calculates a SHA-1 for given data
npm install path-to-sha1> Calculates a SHA-1 of a given path
Using yarn:
``sh`
yarn add path-to-sha1
or using npm:
`sh`
npm install path-to-sha1
javascript
const pathToSHA1 = require('path-to-sha1')const hash = await pathToSHA1('/path/to/file')
``