{"name":"shallow-equal","version":"3.0.0","description":"Typescript-compatible minimalistic shallow equality check for arrays/objects","main":"dist/index.js","module":"dist/index.modern.js","source":"src/index.ts","types":"dist/index.d.ts","keywords":["shallow","equality","compare","comparison","shallowequal","shallow-equal","shallowequals","shallow-equals","isshallowequal","is-shallow-equal","equal","equals","isequal","is-equal","object","array","check","test","typescript"],"repository":{"type":"git","url":"git+https://github.com/moroshko/shallow-equal.git"},"license":"MIT","author":{"name":"Philip Su","email":"philip@sparkanvil.com"},"scripts":{"prebuild":"npm run lint && npm test","build":"microbundle --no-compress --format modern,cjs","lint":"eslint src --ext .ts","prepare":"npm run build","test":"jest --coverage","release":"release-it"},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"collectCoverage":true,"coverageThreshold":{"global":{"branches":100,"functions":100,"lines":100,"statements":100}}},"devDependencies":{"@types/jest":"^24.0.23","@typescript-eslint/eslint-plugin":"^2.11.0","@typescript-eslint/parser":"^2.11.0","eslint":"^6.8.0","eslint-plugin-jest":"^23.1.1","eslint-plugin-json":"^2.0.1","jest":"^29.4.0","microbundle":"^0.15.1","release-it":"^15.6.0","ts-jest":"^29.0.5","typescript":"^4.4.4"},"gitHead":"43fa8029e0e4ccbe3509d1b7f962d2292fe7048b","bugs":{"url":"https://github.com/moroshko/shallow-equal/issues"},"homepage":"https://github.com/moroshko/shallow-equal#readme","_id":"shallow-equal@3.0.0","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-RQCWw09DuoLI8FSuACf3Pba1MJWCXMVXOuGQlZ5pmhxwq1KawCOIwggrIlUTtFyHkyc9aJMBb7nA4X19Tmv8qw==","shasum":"83c9a6ccdc00b6268b1c404be7993434801f7bf6","tarball":"http://registry-npm.ywwl.com/shallow-equal/download/shallow-equal-3.0.0.tgz","fileCount":10,"unpackedSize":14757,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcYFIF+yVjR9v6Bs+Xt8GIWalb37AyD5uFrz63slhkdQIhAO5+we8QiFe7pq0rY61/DJWe1cBllHdub4JRDK/wYL7W"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0en+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpKGxAAl4Rickr9oGYO5Vdt01g7XLvfhZeEhx6aTlnQZB99EX4pLurL\r\nj5DTq9LOQzIZ7bejszOW10CMQhkkAIpcuZj7hGW7qgf4Mryb5moQbmBhzHyE\r\nBb893pPPNWdk8ossU/NVSUDbcqhACd55rLKaW+ZRaWBoMF8+tf+TdMKk97Zi\r\n1bJsJ9RzQOkwOntFZuMg4s5/c19yeo6g1piFAuBRm8n5hhwKqgd8YnSwhN2o\r\nXbQnxEux6lu9H4N7dTXlPiLFHQlBFc9XBSE9mtmZbvotM1JxLPjAY5OcNVRD\r\nhe98m6fBcxzlyuOnnwGyxSyMViVhjDMM1cPIlWScdBju82TtAhcYEe0NNjax\r\nSUauAaum73suJCt1YiSy/ZdorA+0NbD4YsN3AwYT1glukVxWjPutQaLOjrq2\r\ncDXZV06vDo7Gb9gUOwbPKmbLu6gxNsw19s/Xv9EjYmk5b2WyYRQv5/ji+jhg\r\n8LASpQraUmXJMGBNrQuCYUrUGQi4CuoqTuQ2E32lSA7hoRl7Ntk1HOUvINDl\r\n8HmIJbCCJRETa9aDt4Nur+MMdZn0TBFRp2dRNpM6QSfLjI9ttnoyYyGnbjwc\r\nsXqQHb1yMmkxA7dYggzGqyIpeM7MJjpjPGNq44gptwBWkK7UPuJKmVwcFZNA\r\nifAfqjZQOIpeaKlKnGOShjLp+2YnAKriA08=\r\n=dOmW\r\n-----END PGP SIGNATURE-----\r\n","size":3688,"noattachment":false,"key":"/shallow-equal/-/shallow-equal-3.0.0.tgz"},"_npmUser":{"name":"fivecar","email":"philip@sparkanvil.com"},"directories":{},"maintainers":[{"name":"moroshko","email":"michael.moroshko@gmail.com"},{"name":"fivecar","email":"philip@sparkanvil.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shallow-equal_3.0.0_1674701309834_0.654035265856638"},"_hasShrinkwrap":false,"readme":"## Description\n\nIf you know you have two arrays or two objects in hand, and you want to know if they are shallowly equal or not, this library is for you.\n\n## Features\n\n- Super light\n- No dependencies\n- Thoroughly tested\n\n## Installation\n\n```shell\nnpm install shallow-equal --save\n```\nor\n```shell\nyarn add shallow-equal\n```\n\n## Usage\n\n```js\nimport { shallowEqualArrays } from \"shallow-equal\";\n\nshallowEqualArrays([1, 2, 3], [1, 2, 3]); // => true\nshallowEqualArrays([{ a: 5 }], [{ a: 5 }]); // => false\n```\n\n```js\nimport { shallowEqualObjects } from \"shallow-equal\";\n\nshallowEqualObjects({ a: 5, b: \"abc\" }, { a: 5, b: \"abc\" }); // => true\nshallowEqualObjects({ a: 5, b: {} }, { a: 5, b: {} }); // => false\n```\n\nYou can also use the generic form, `shallowEqual`. But note that it does runtime type checking in order to decide whether it's comparing arrays or objects, so the convenience comes with a runtime penalty.\n```js\nimport { shallowEqual } from \"shallow-equal\";\n\nshallowEqual([1, 2, 3], [1, 2, 3]); // => true\nshallowEqual({ a: 5, b: {} }, { a: 5, b: {} }); // => false\n```\n","publish_time":1674701310024,"_cnpm_publish_time":1674701310024,"dist-tags":{"latest":"3.1.0"}}