Hash publishable NPM package content
npm install -g hashpac
# use current dir as npm lib
hashpac > .hashes
# specify custom npm lib dir
hashpac ~/my-npm-lib > .hashes
npm install -S hashpac
const {hashpac} = require('hashpac');
console.log(hashpac({
cwd: process.cwd(),
packageJson: path.join(process.cwd(), 'package.json'),
npmIgnore: path.join(process.cwd(), '.npmignore')
}))