{"name":"same-object","version":"1.0.2","description":"Determine if two objects are deeply equal","main":"index.js","scripts":{"test":"standard && brittle test.js --coverage"},"repository":{"type":"git","url":"git+https://github.com/holepunchto/same-object.git"},"author":{"name":"Lucas Barrena","url":"LuKks"},"license":"MIT","bugs":{"url":"https://github.com/holepunchto/same-object/issues"},"homepage":"https://github.com/holepunchto/same-object","devDependencies":{"brittle":"^3.1.1","deep-equal":"^2.2.0","standard":"^17.0.0"},"gitHead":"7f470c55085d1b372918f3d9bf44134abfda41e5","_id":"same-object@1.0.2","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-csHWhvUsLbIOHDM/nP+KHWM+BLPsIzWkFa8HbzaI0G7BqKXgx+7FJpKTGgLXyz5amfdY2OVBcmXTqYOMEk04og==","shasum":"1e7d02600be37bf05eadfe4083103154bb1155c6","tarball":"http://registry-npm.ywwl.com/same-object/download/same-object-1.0.2.tgz","fileCount":15,"unpackedSize":45753,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHu6+2sz7SX3JeZADGdJZp1U853awrJazWKuWshJR/4bAiAnIoIIwFDnDU8lbkTJ09EApJgzFSC6oOst8ZC7NRS/xA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj88HOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqb4A/9FoURE73QvfLJNLtP5w14TSoyGAnmldSeueDBerq3u6NgYECS\r\nploz2jxB3YF/CaKvzNUrAPb1xHqWEMBa5Sa8JY54/dlY6QqNQ4vCG1Lkn8Je\r\nW9v8a1YAj/nCC6oqjLZQRh3s3kjmqCm8R7AuuJjYvNxJPBshxaKv0ZI96C8F\r\nwG/RbkoTSTSZdRKHx/xKYa8ZOJrL4ahuUxf8/dsL2iZ4TnA2QDQD3Ih3sJ9I\r\nsokyPNF8XuHU+RD0aLsW1MKOApFiu+1Ek5XZIed3qoOG2ouCeca3S1rN6j3j\r\nz4BzSVxPCWeQxSKgxl8stgcCJ/ejslxmh20EXZqxwtg5Cxs310zK3yPCZpBS\r\nqYEYcVNUgloGmDFpS91japzXbUQuZ3rN4dYiSS2XgWHcR5i/bqHovCd+/oM+\r\nlnNsj4G4sYCEfGlNnedEo6rNRniTQcumLKGefoCYLkIuLLmz1oQiCohACQYC\r\n0cnQKGjLsBeTWrRwgPfecXfhVD+o9YdKcEKQFT/vJApYRTLDGYyp8oHfeekG\r\n7oyies1Q51KXE96b49AUyju626FP6BsOYxfDu8xu2NExV6tRdDPZZpcml3Uh\r\natCNFArL4Ar1VxBfmiGZBty7yAZT5YnjbRTqwutTIIXTkNNhvYCWHYH6KrEC\r\nnGyK+zfbMf870N/aVXLVFpq3Ta4J90tUa+M=\r\n=Q2ho\r\n-----END PGP SIGNATURE-----\r\n","size":10733,"noattachment":false,"key":"/same-object/-/same-object-1.0.2.tgz"},"_npmUser":{"name":"lukks","email":"lucasbarrena98@gmail.com"},"directories":{},"maintainers":[{"name":"lukks","email":"lucasbarrena98@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/same-object_1.0.2_1676919246361_0.4524735474344064"},"_hasShrinkwrap":false,"readme":"# same-object\n\nDetermine if two objects are deeply equal\n\n```\nnpm install same-object\n```\n\nSupports circular references, Maps, Symbols, etc.\n\nAims for ~99% compatibility with `deep-equal` or `assert.deepEqual` without requiring native dependencies.\\\nUseful for JavaScript runtimes without native Node modules like `util`, etc.\n\n## Usage\n``` js\nconst sameObject = require('same-object')\n\nconsole.log(sameObject(1, '1')) // true\nconsole.log(sameObject(1, '1', { strict: true })) // false\n\nconsole.log(sameObject({ a: 1 }, { a: 1 })) // true\nconsole.log(sameObject({ a: 1 }, { a: 1, b: 2 })) // false\n\nconsole.log(sameObject(\n  new Set(['a', 1, 'b', 2]),\n  new Set(['b', 2, 'a', 1])\n)) // true\n```\n\n## API\n\n#### `const bool = sameObject(a, b, [options])`\n\nCompares `a` and `b`, returning whether they are equal or not.\n\nAvailable `options`:\n```js\n{\n  strict: false\n}\n```\n\nLoosely comparison (`==`) by default.\\\nUse `{ strict: true }` for a stronger equality check (`===`).\n\n## References\nThe source code is based on:\\\n[node/comparisons.js](https://github.com/nodejs/node/blob/2adea16e394448c4c87b0639514f8babbeb7a080/lib/internal/util/comparisons.js)\\\n[inspect-js/node-deep-equal](https://github.com/inspect-js/node-deep-equal)\\\n[chaijs/deep-eql](https://github.com/chaijs/deep-eql)\n\n## License\nMIT\n","publish_time":1676919246548,"_cnpm_publish_time":1676919246548,"dist-tags":{"latest":"1.0.2"}}