Skip to content

anzerr/fs.hash

Repository files navigation

Intro

GitHub Actions status | linter GitHub Actions status | publish GitHub Actions status | test

hash a directory or file

Install

npm install --save git+https://git@github.com/anzerr/fs.hash.git
npm install --save @anzerr/fs.hash

Example

const hash = require('fs.hash');

hash('./node_modules', {raw: true, max: 5, type: 'sha256'}).then((res) => {
	console.log(res);
});