Displaying 1 to 7 from 7 results

hasha - Hashing made simple. Get the hash of a buffer/string/stream/file.

  •    Javascript

Hashing made simple. Get the hash of a buffer/string/stream/file.Convenience wrapper around the core crypto Hash class with simpler API and better defaults.

rev-file - Get the revved file path of a file

  •    Javascript

Reads the file, MD5-hashes it, truncates the hash to 10 characters, appends it to the filename, and returns the modified path.Returns a Promise for a revved filepath.

rev-hash - Create a hash for file revving

  •    Javascript

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.