node-object-hash
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "node-object-hash", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Node.js object hash library with properties/arrays sorting to provide constant hashes", | ||
@@ -11,2 +11,3 @@ "main": "hash2.js", | ||
"devDependencies": { | ||
"benchmark": "^2.1.1", | ||
"chai": "^3.5.0", | ||
@@ -24,3 +25,4 @@ "eslint": "^3.3.1", | ||
"cover": "istanbul cover _mocha", | ||
"bench": "node --expose-gc ./bench/index.js" | ||
"bench": "node --expose-gc ./bench/index.js", | ||
"bench2": "node --expose-gc ./bench/bench.js" | ||
}, | ||
@@ -27,0 +29,0 @@ "repository": { |
@@ -7,3 +7,3 @@ # node-object-hash | ||
Hashes are built on top of node's crypto module | ||
(so for using in browser use something like browserify or use crypto functions polyfills). | ||
(so for using in browser use something like [browserify-crypto](https://github.com/crypto-browserify/crypto-browserify) or some kind of crypto functions polyfills). Or you can use only `objectSorter` ([source](https://github.com/SkeLLLa/node-object-hash/blob/master/objectSorter.js)) for getting your objects' string representation and compare or pass them to your own hash function. | ||
@@ -19,3 +19,3 @@ [![node](https://img.shields.io/node/v/node-object-hash.svg?maxAge=21600&style=flat-square)]() | ||
### Installation | ||
`npm i node-object-hash` | ||
`npm i node-object-hash -S` | ||
@@ -112,2 +112,3 @@ ### Features | ||
For more examples you can see [tests file](https://github.com/SkeLLLa/node-object-hash/blob/master/test/hash2.js) | ||
or try it out online at [runkit](https://runkit.com/skellla/node-object-hash-example) | ||
@@ -130,8 +131,6 @@ ### Benchmark results | ||
### Similar libraries | ||
* https://www.npmjs.com/package/object-hash (Slow, but browser-ready | ||
and most js types supported) | ||
* https://www.npmjs.com/package/object-hash (Slow, useful for browsers because it not uses node's crypto library) | ||
* https://www.npmjs.com/package/hash-object (no ES6 types support) | ||
### License | ||
ISC |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14878
8
133