@anzerr/fs.hash

util to hash directories or files

Usage no npm install needed!

<script type="module">
  import anzerrFsHash from 'https://cdn.skypack.dev/@anzerr/fs.hash';
</script>

README

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);
});