cricket

0.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i cricket

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators