UNPKG

json-deep-compare

Version:

A powerful library for comparing JSON objects with support for deep comparison, regex validation, and customizable options

121 lines 3.92 kB
{ "name": "json-deep-compare", "version": "1.1.4", "description": "A powerful library for comparing JSON objects with support for deep comparison, regex validation, and customizable options", "homepage": "https://ashmeetsehgal.com/tools/json-compare", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "exports": { ".": { "import": "./dist/esm/index.js", "require": "./dist/cjs/index.js" } }, "type": "commonjs", "types": "types/index.d.ts", "files": [ "dist", "types", "LICENSE", "README.md" ], "scripts": { "test": "jest", "test:formats": "npm run build && node test/cjs-test.js && node --experimental-modules test/esm-test.mjs", "lint": "eslint .", "build": "npm run clean && npm run build:cjs && npm run build:esm && npm run build:copy-package && npm run build:copy-types", "build:full": "npm run build && npm run test && npm run minify", "clean": "rm -rf dist", "build:cjs": "mkdir -p dist/cjs && babel src --out-dir dist/cjs", "build:esm": "mkdir -p dist/esm && babel src --out-dir dist/esm --no-babelrc --config-file ./babel.esm.config.js", "build:copy-package": "node -e \"const fs = require('fs'); const pkg = JSON.parse(fs.readFileSync('./package.json', 'utf8')); const distPkg = { ...pkg }; distPkg.name = 'json-deep-compare'; distPkg.main = './cjs/index.js'; distPkg.module = './esm/index.js'; distPkg.exports = { '.': { 'import': './esm/index.js', 'require': './cjs/index.js' } }; distPkg.types = '../types/index.d.ts'; distPkg.files = ['LICENSE', 'README.md']; delete distPkg.devDependencies; delete distPkg.scripts; require('fs').writeFileSync('./dist/package.json', JSON.stringify(distPkg, null, 2));\"", "build:copy-types": "mkdir -p dist/types && cp -r types/* dist/types/", "minify": "for dir in cjs esm; do for file in dist/$dir/*.js dist/$dir/**/*.js; do if [ -f \"$file\" ]; then terser \"$file\" -c -m -o \"$file\"; fi; done; done", "prepublishOnly": "npm run build:full", "docs": "jsdoc -c jsdoc.conf.json -r", "prepare": "husky" }, "keywords": [ "json", "compare", "deep", "diff", "object", "comparison", "regex", "validation", "json-diff", "deep-compare", "object-compare", "json-validator", "api-testing", "data-validation", "unit-testing", "json-schema", "deep-equal", "lodash-alternative", "jest-helper", "mocha-helper", "api-response-validation", "json-matching", "nested-object-compare", "typescript-json", "test-utilities", "data-diff", "object-diff", "json-comparison", "api-validation", "response-validation", "data-comparison", "object-equality", "json-testing", "cypress-helper", "testing-framework", "json-assertions", "deep-diff", "structure-validation", "schema-validation", "field-validation" ], "engines": { "node": ">=14.0.0" }, "author": "Ashmeet Sehgal (ashmeetsehgal.com)", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/ashmeetsehgal/json-deep-compare.git" }, "bugs": { "url": "https://github.com/ashmeetsehgal/json-deep-compare/issues" }, "funding": { "type": "github", "url": "https://github.com/sponsors/ashmeetsehgal" }, "bundlesize": [ { "path": "./dist/cjs/*.js", "maxSize": "10 kB" }, { "path": "./dist/esm/*.js", "maxSize": "10 kB" } ], "devDependencies": { "@babel/cli": "^7.14.8", "@babel/core": "^7.15.0", "@babel/plugin-transform-modules-commonjs": "^7.26.3", "@babel/preset-env": "^7.15.0", "@types/jest": "^27.5.2", "@types/node": "^22.13.17", "eslint": "^8.2.0", "husky": "^9.1.7", "jest": "^27.0.6", "jsdoc": "^4.0.4", "terser": "^5.39.0", "ts-jest": "^27.1.5", "typescript": "^4.9.5" } }