cricket

composite hashing

cricket

composite hashing

wip - consider this a preview

var cricket = require('cricket')
var hashUser = cricket.makeHashFn(function (hash) {
  hash.add(this.name)
  hash.unordered(this.identifyingMarks)
})
// => Function

hashUser({
  _id: 1,
  name: 'bob',
  identifyingMarks: [
    'tattoo on left side',
    '6th finger on right hand',
    'lazy eye'
  ]
})
// => '2aecc31c'
$ npm install cricket

From package root:

$ npm install
$ npm test

MIT. (c) 2013 jden jason@denizac.org. See LICENSE.md