cricket
v0.1.0
Published
composite hashing
Readme
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 cricketrunning the tests
From package root:
$ npm install
$ npm testcontributors
- jden [email protected]
license
MIT. (c) 2013 jden [email protected]. See LICENSE.md
