npm module: composite hashing
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
test
.gitignore
LICENSE.md
README.md
index.js
package.json

README.md

cricket

composite hashing

wip - consider this a preview

usage

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'

api

cricket.makeHashFn(map) => (Object) => hash: String

installation

$ npm install cricket

running the tests

From package root:

$ npm install
$ npm test

contributors

license

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