node-object-hash
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "node-object-hash", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Node.js object hash library with properties/arrays sorting to provide constant hashes", | ||
@@ -5,0 +5,0 @@ "main": "hash2.js", |
# node-object-hash | ||
Node.js object hash library with properties/arrays sorting to provide constant hashes. | ||
It also provides a method that returns sorted object strings that can be used for object comparison without hashes. | ||
Built on top of node's crypto module (so for using in browser use something | ||
like browserify or use crypto functions polyfills). | ||
Hashes are built on top of node's crypto module | ||
(so for using in browser use something like browserify or use crypto functions polyfills). | ||
[![node](https://img.shields.io/node/v/node-object-hash.svg?maxAge=2592000&style=flat-square)]() | ||
[![NPM](https://img.shields.io/npm/v/node-object-hash.svg?maxAge=2592000&style=flat-square)](https://npmjs.org/packages/node-object-hash) | ||
[![NPM Downloads](https://img.shields.io/npm/dt/node-object-hash.svg?maxAge=2592000&style=flat-square)](https://npmjs.org/packages/node-object-hash) | ||
[![Build Status](https://img.shields.io/travis/SkeLLLa/node-object-hash.svg?branch=master&style=flat-square)](https://travis-ci.org/SkeLLLa/node-object-hash) | ||
[![Known Vulnerabilities](https://snyk.io/test/github/SkeLLLa/node-object-hash/badge.svg?style=flat-square)](https://snyk.io/test/github/skellla/node-object-hash) | ||
[![Code Climate](https://img.shields.io/codeclimate/github/SkeLLLa/node-object-hash.svg?maxAge=2592000&style=flat-square)](https://codeclimate.com/github/SkeLLLa/node-object-hash/code) | ||
[![Coverage](https://img.shields.io/codeclimate/coverage/github/SkeLLLa/node-object-hash.svg?maxAge=2592000&style=flat-square)](https://codeclimate.com/github/SkeLLLa/node-object-hash/coverage) | ||
[![node](https://img.shields.io/node/v/node-object-hash.svg?maxAge=21600&style=flat-square)]() | ||
[![NPM](https://img.shields.io/npm/v/node-object-hash.svg?maxAge=21600&style=flat-square)](https://npmjs.org/packages/node-object-hash) | ||
[![NPM Downloads](https://img.shields.io/npm/dt/node-object-hash.svg?maxAge=21600&style=flat-square)](https://npmjs.org/packages/node-object-hash) | ||
[![Build Status](https://img.shields.io/travis/SkeLLLa/node-object-hash.svg?maxAge=21600&branch=master&style=flat-square)](https://travis-ci.org/SkeLLLa/node-object-hash) | ||
[![Known Vulnerabilities](https://snyk.io/test/github/SkeLLLa/node-object-hash/badge.svg?maxAge=21600&style=flat-square)](https://snyk.io/test/github/skellla/node-object-hash) | ||
[![Code Climate](https://img.shields.io/codeclimate/github/SkeLLLa/node-object-hash.svg?maxAge=21600&style=flat-square)](https://codeclimate.com/github/SkeLLLa/node-object-hash/code) | ||
[![Coverage](https://img.shields.io/codeclimate/coverage/github/SkeLLLa/node-object-hash.svg?maxAge=21600&style=flat-square)](https://codeclimate.com/github/SkeLLLa/node-object-hash/coverage) | ||
@@ -53,3 +54,4 @@ ### Installation | ||
#### `hash(object[, options])` | ||
#### API methods | ||
##### `hash(object[, options])` | ||
Returns hash string. | ||
@@ -61,4 +63,4 @@ * `object`:`<*>` object for calculating hash; | ||
#### `sortObject(object)` | ||
Returns sorted string generated from object | ||
##### `sortObject(object)` | ||
Returns sorted string generated from object (can be used for object comparison) | ||
* `object`:`<*>` - object for sorting; | ||
@@ -109,2 +111,4 @@ | ||
For more examples you can see [tests file](https://github.com/SkeLLLa/node-object-hash/blob/master/test/hash2.js) | ||
### Benchmark results | ||
@@ -111,0 +115,0 @@ Bench data - array of 100000 complex objects |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
134
0
14404
6
282