Create a hash for file revving
It will create an
md5 hash from an input buffer or string, and truncate it to 10 characters, which is unique enough for this purpose.
If you think you need a different hash algorithm or a longer hash, you're wrong.
$ npm install rev-hash
const fs = ;const revisionHash = ;;//=> 'bb9d8fe615';//=> 'fea80f2db0'
Buffer | string
Data to create a hash from.
MIT © Sindre Sorhus