{"_id":"objhash","_rev":"63473","name":"objhash","description":"Retrieve a node.js object's V8 identity hash","dist-tags":{"latest":"1.0.5"},"maintainers":[{"name":"lxe","email":"lxe@lxe.co"}],"time":{"modified":"2021-06-03T10:21:28.000Z","created":"2013-06-06T17:31:44.197Z","1.0.5":"2014-11-13T08:05:12.206Z","1.0.3":"2014-08-29T21:18:55.289Z","1.0.2":"2014-07-05T18:50:52.287Z","1.0.1":"2014-06-26T01:00:29.914Z","1.0.0":"2014-06-26T00:43:48.064Z","0.0.2":"2013-06-06T17:31:44.197Z"},"users":{"stringparser":true},"author":{"name":"Aleksey Smolenchuk","email":"lxe@lxe.co"},"repository":{"type":"git","url":"git://github.com/lxe/node-objhash.git"},"versions":{"1.0.5":{"name":"objhash","main":"objhash","version":"1.0.5","description":"Retrieve a node.js object's V8 identity hash","repository":{"type":"git","url":"git://github.com/lxe/node-objhash.git"},"author":{"name":"Aleksey Smolenchuk","email":"lxe@lxe.co"},"engines":{"node":">=0.8.0"},"licenses":[{"type":"MIT","url":"http://github.com/lxe/node-objhash/LICENSE"}],"scripts":{"install":"node-gyp rebuild","test":"npm build && mocha test"},"gypfile":true,"devDependencies":{"mocha":"^2.0.1"},"dependencies":{"bindings":"^1.2.1","nan":"^1.4.1"},"gitHead":"eeaaab57128bc5d8057b0ad9425bb9e1c8016a45","bugs":{"url":"https://github.com/lxe/node-objhash/issues"},"homepage":"https://github.com/lxe/node-objhash","_id":"objhash@1.0.5","_shasum":"894c4dc56a193e06f705e129fb3e585c24f57ed5","_from":".","_npmVersion":"2.1.6","_nodeVersion":"0.10.30","_npmUser":{"name":"lxe","email":"lxe@lxe.co"},"maintainers":[{"name":"lxe","email":"lxe@lxe.co"}],"dist":{"shasum":"894c4dc56a193e06f705e129fb3e585c24f57ed5","size":2822,"noattachment":false,"key":"/objhash/-/objhash-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/objhash/download/objhash-1.0.5.tgz"},"directories":{},"publish_time":1415865912206,"_cnpm_publish_time":1415865912206,"_hasShrinkwrap":false},"1.0.3":{"name":"objhash","main":"objhash","version":"1.0.3","description":"Retrieve a node.js object's V8 identity hash","repository":{"type":"git","url":"git://github.com/lxe/node-objhash.git"},"author":{"name":"Aleksey Smolenchuk","email":"lxe@lxe.co"},"engines":{"node":">=0.8.0"},"licenses":[{"type":"MIT","url":"http://github.com/lxe/node-objhash/LICENSE"}],"scripts":{"install":"node-gyp rebuild","test":"npm build && mocha test"},"gypfile":true,"devDependencies":{"mocha":"^1.21.4"},"dependencies":{"bindings":"^1.2.1","nan":"^1.3.0"},"gitHead":"fbc62954a97e57b401be014e782ac6ac7599bace","bugs":{"url":"https://github.com/lxe/node-objhash/issues"},"homepage":"https://github.com/lxe/node-objhash","_id":"objhash@1.0.3","_shasum":"65f1be44034364456730a5581b46c0a033dfad52","_from":".","_npmVersion":"2.0.0-beta.0","_npmUser":{"name":"lxe","email":"lxe@lxe.co"},"maintainers":[{"name":"lxe","email":"lxe@lxe.co"}],"dist":{"shasum":"65f1be44034364456730a5581b46c0a033dfad52","size":2847,"noattachment":false,"key":"/objhash/-/objhash-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/objhash/download/objhash-1.0.3.tgz"},"directories":{},"publish_time":1409347135289,"_cnpm_publish_time":1409347135289,"_hasShrinkwrap":false},"1.0.2":{"name":"objhash","main":"objhash","version":"1.0.2","description":"Retrieve a node.js object's V8 identity hash","repository":{"type":"git","url":"git://github.com/lxe/node-objhash.git"},"author":{"name":"Aleksey Smolenchuk","email":"lxe@lxe.co"},"engines":{"node":">=0.8.0"},"licenses":[{"type":"MIT","url":"http://github.com/lxe/node-objhash/LICENSE"}],"scripts":{"install":"node-gyp rebuild","test":"npm build && mocha test"},"gypfile":true,"devDependencies":{"mocha":"~1.20.1"},"dependencies":{"bindings":"~1.2.1","nan":"~1.2.0"},"gitHead":"6802c8b52f957565a8e6ed3300b959ecab7c07df","bugs":{"url":"https://github.com/lxe/node-objhash/issues"},"homepage":"https://github.com/lxe/node-objhash","_id":"objhash@1.0.2","_shasum":"15211dd383cb274eb0756a5d5f6df559fc295847","_from":".","_npmVersion":"1.4.20","_npmUser":{"name":"lxe","email":"lxe@lxe.co"},"maintainers":[{"name":"lxe","email":"lxe@lxe.co"}],"dist":{"shasum":"15211dd383cb274eb0756a5d5f6df559fc295847","size":2747,"noattachment":false,"key":"/objhash/-/objhash-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/objhash/download/objhash-1.0.2.tgz"},"directories":{},"publish_time":1404586252287,"_cnpm_publish_time":1404586252287,"_hasShrinkwrap":false},"1.0.1":{"name":"objhash","main":"objhash","version":"1.0.1","description":"Retrieve a node.js object's V8 identity hash","repository":{"type":"git","url":"git://github.com/lxe/node-objhash.git"},"author":{"name":"Aleksey Smolenchuk","email":"lxe@lxe.co"},"engines":{"node":">=0.8.0"},"licenses":[{"type":"MIT","url":"http://github.com/lxe/node-objhash/LICENSE"}],"scripts":{"install":"node-gyp rebuild","test":"npm build && mocha test"},"gypfile":true,"devDependencies":{"mocha":"~1.20.1"},"bugs":{"url":"https://github.com/lxe/node-objhash/issues"},"homepage":"https://github.com/lxe/node-objhash","_id":"objhash@1.0.1","_shasum":"0fe581b2f6a8c085386b2eb9076021b5bae78ad5","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"lxe","email":"lxe@lxe.co"},"maintainers":[{"name":"lxe","email":"lxe@lxe.co"}],"dist":{"shasum":"0fe581b2f6a8c085386b2eb9076021b5bae78ad5","size":2714,"noattachment":false,"key":"/objhash/-/objhash-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/objhash/download/objhash-1.0.1.tgz"},"directories":{},"publish_time":1403744429914,"_cnpm_publish_time":1403744429914,"_hasShrinkwrap":false},"1.0.0":{"name":"objhash","main":"objhash","version":"1.0.0","description":"Retrieve a node.js object's V8 identity hash","repository":{"type":"git","url":"git://github.com/lxe/node-objhash.git"},"author":{"name":"Aleksey Smolenchuk","email":"lxe@lxe.co"},"engines":{"node":">=0.8.0"},"licenses":[{"type":"MIT","url":"http://github.com/lxe/node-objhash/LICENSE"}],"scripts":{"install":"node-gyp rebuild","test":"npm build && mocha test"},"gypfile":true,"devDependencies":{"mocha":"^1.20.1"},"bugs":{"url":"https://github.com/lxe/node-objhash/issues"},"homepage":"https://github.com/lxe/node-objhash","_id":"objhash@1.0.0","dist":{"shasum":"d665f49cff2baeaa36d9bfa0977c34e7c0bbc5e4","size":2706,"noattachment":false,"key":"/objhash/-/objhash-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/objhash/download/objhash-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"lxe","email":"lxe@lxe.co"},"maintainers":[{"name":"lxe","email":"lxe@lxe.co"}],"directories":{},"publish_time":1403743428064,"_cnpm_publish_time":1403743428064,"_hasShrinkwrap":false},"0.0.2":{"name":"objhash","main":"objhash","version":"0.0.2","description":"Retrieve a node.js object's v8 identity hash.","repository":{"type":"git","url":"git://github.com/lxe/node-objhash.git"},"author":{"name":"Aleksey Smolenchuk","email":"lxe@lxe.co"},"engines":{"node":">=0.8.0"},"license":"MIT","readmeFilename":"README.md","scripts":{"install":"node-gyp rebuild"},"gypfile":true,"_id":"objhash@0.0.2","dist":{"shasum":"0763b850b9d389489f001506c5165025b7022ff4","size":1187,"noattachment":false,"key":"/objhash/-/objhash-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/objhash/download/objhash-0.0.2.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"lxe","email":"lxe@lxe.co"},"maintainers":[{"name":"lxe","email":"lxe@lxe.co"}],"directories":{},"publish_time":1370539904197,"_cnpm_publish_time":1370539904197,"_hasShrinkwrap":false}},"readme":"# node-objhash\n\n[![Build Status](https://travis-ci.org/lxe/node-objhash.svg)](https://travis-ci.org/lxe/node-objhash)\n[![Dependency Status](https://david-dm.org/lxe/node-objhash.svg?theme=shields.io)](https://david-dm.org/lxe/node-objhash)\n[![devDependency Status](https://david-dm.org/lxe/node-objhash/dev-status.svg?theme=shields.io)](https://david-dm.org/lxe/node-objhash#info=devDependencies)\n\n\nRetrieve a node.js object's v8 [identity hash](http://izs.me/v8-docs/classv8_1_1Object.html#a5309f7a349feb906a05ee45b6feeaab1). \nThis value can be used as a hasher to a memoization function drastically improving performance. \n\nThe V8 Identity hash is *not guaranteed to be unique*, so make sure to watch out for collisions if you're using it as a hash map key.\n\n## Usage\n\n```javascript\nvar objhash = require('objhash');\n\nvar o = { \n  foo: 'bar' \n};\n\nvar ref = o;\n\n// Returns a 32 bit identity hash\nconsole.log(objhash(o)); \n// > 1023577207\n\n// Returns the same identity hash, \n// as 'ref' is just a reference pointing to 'o'\nconsole.log(objhash(ref));              \n// > 1023577207\n\n// Returns a different identity hash, as we are\n// instantiating a different object.\n// \n// Note that this behavior differs if you use JSON.stringify()\n// as your memoize hasher\nconsole.log(objhash({ foo : 'bar' }));  \n// > 248433069\n\n// For primitives, the function just returns the \n// value of the argument\nconsole.log(objhash('A String')); \n// > 'A String'\nconsole.log(objhash(42));\n// > 42\n```\n\n## License\n\nCopyright (c) 2014 Aleksey Smolenchuk\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_attachments":{},"homepage":"https://github.com/lxe/node-objhash","bugs":{"url":"https://github.com/lxe/node-objhash/issues"}}