Socket
Socket
Sign inDemoInstall

json-diff

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-diff - npm Package Compare versions

Comparing version 0.3.1 to 0.5.0

LICENSE-MIT

11

package.json
{
"author": "Andrey Tarantsov <andreyvit@me.com>",
"contributors": [
"Gavriel Fleischer <flocsy@gmail.com>"
],
"name": "json-diff",
"description": "JSON diff",
"version": "0.3.1",
"version": "0.5.0",
"homepage": "https://github.com/andreyvit/json-diff",

@@ -13,4 +16,4 @@ "repository": {

"scripts": {
"test": "./node_modules/mocha/bin/mocha",
"cov": "rm -rf lib-cov; jscoverage lib lib-cov; env JSLIB=lib-cov mocha -R dot && env JSLIB=lib-cov mocha -R html-cov >coverage.html; open coverage.html"
"test": "./node_modules/mocha/bin/mocha test/*.coffee",
"cov": "rm -rf lib-cov; jscoverage lib lib-cov; env JSLIB=lib-cov mocha -R dot && env JSLIB=lib-cov mocha -R html-cov >coverage.html; open coverage.html"
},

@@ -23,2 +26,4 @@ "dependencies": {

"devDependencies": {
"coffee-script": "~1.7.1",
"iced-coffee-script": "^1.8.0-d",
"mocha": "~1.7.0"

@@ -25,0 +30,0 @@ },

@@ -15,2 +15,12 @@ JSON structural diff

Contribution policy
-------------------
1. This project is maintained thanks to your contributions! Please send pull requests.
2. I will merge any pull request that adds something useful, does not break existing things, has reasonable code quality and provides/updates tests where appropriate.
3. Anyone who gets a significant pull request merged gets commit access to the repository.
Usage

@@ -26,3 +36,3 @@ -----

% json-diff --help
Usage: json-diff [-vjC] first.json second.json
Usage: json-diff [-vjCk] first.json second.json

@@ -37,2 +47,3 @@ Arguments:

-j, --raw-json Display raw JSON encoding of the diff
-k, --keys-only Compare only the keys, ignore the differences in values
-h, --help Display this usage information

@@ -46,2 +57,3 @@

* fuzzy matching of modified array elements (when array elements are object hierarchies)
* compare only the json structure (keys), ignoring the values
* reasonable test coverage (far from 100%, though)

@@ -48,0 +60,0 @@

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