path-to-sha256
Calculates a SHA-256 of a given path
Install
Using yarn:yarn add path-to-sha256
or using npm:
npm install path-to-sha256
Usage
const pathToSHA256 = require('path-to-sha256')
const hash = await pathToSHA256('/path/to/file')
Calculates a SHA-256 of a given path
yarn add path-to-sha256
npm install path-to-sha256
const pathToSHA256 = require('path-to-sha256')
const hash = await pathToSHA256('/path/to/file')
Bytes is a JavaScript newsletter you'll actually enjoy reading.
Delivered every Monday, for free.