Socket
Socket
Sign inDemoInstall

node-object-hash

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-object-hash - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

6

package.json
{
"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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc