hash-o-matic

Pass objects or variables and the generated hash will be the same regardless of the order the parameters were passed.

Usage no npm install needed!

<script type="module">
  import hashOMatic from 'https://cdn.skypack.dev/hash-o-matic';
</script>

README

hash-o-matic

Hash up an unlimited number of values, but the problem is that the final hashed value is dependent on the order in which these values are added. What hash-o-matic does is it will order the object's properties by the property name before hashing. This is useful if you frequently hash the same variables through-out your app(s) but can't recall the order in which the values were added. The only real catch is the variables must have the same naming throughout your code.