{"name":"shallow-equal","version":"1.1.0","description":"Minimalistic shallow equality check for arrays/objects","repository":{"type":"git","url":"git+https://github.com/moroshko/shallow-equal.git"},"author":{"name":"Misha Moroshko","email":"michael.moroshko@gmail.com"},"scripts":{"lint":"eslint src","test":"nyc mocha 'src/*.test.js'","dist":"rm -rf arrays objects && mkdir arrays objects && cp src/arrays.js arrays/index.js && cp src/objects.js objects/index.js","prebuild":"npm run lint && npm test","build":"npm run dist","preversion":"npm run prebuild","postversion":"git push && git push --tags","prepublish":"npm run dist"},"devDependencies":{"chai":"^3.5.0","eslint":"^3.4.0","eslint-plugin-mocha":"^4.4.0","mocha":"^3.0.2","nyc":"^8.1.0"},"keywords":["shallow","equality","compare","comparison","shallowequal","shallow-equal","shallowequals","shallow-equals","isshallowequal","is-shallow-equal","equal","equals","isequal","is-equal","object","array","check","test"],"nyc":{"lines":100,"statements":100,"functions":100,"branches":100,"include":["src/*.js"],"exclude":["src/*.test.js"],"reporter":["lcov","text-summary"],"check-coverage":true},"license":"MIT","gitHead":"1e64839e79f0504181bad1008b837c05a63eb744","bugs":{"url":"https://github.com/moroshko/shallow-equal/issues"},"homepage":"https://github.com/moroshko/shallow-equal#readme","_id":"shallow-equal@1.1.0","_nodeVersion":"8.11.4","_npmVersion":"6.7.0","dist":{"integrity":"sha512-0SW1nWo1hnabO62SEeHsl8nmTVVEzguVWZCj5gaQrgWAxz/BaCja4OWdJBWLVPDxdtE/WU7c98uUCCXyPHSCvw==","shasum":"cc022f030dcba0d1c198abf658a3c6c744e171ca","tarball":"http://registry-npm.ywwl.com/shallow-equal/download/shallow-equal-1.1.0.tgz","fileCount":5,"unpackedSize":4482,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcWUN6CRA9TVsSAnZWagAA3vEQAIoapnadlJyJDcGT41uK\ncaRG38APavQFSvdNr4lokBqNL2yBDX8ALXOY0ZzJz/J2vMLBOvZv7+oLHvHW\nfqp9OI+7RRcygCejd+8rRyy/bKQYAWt6OFo0sarBhc8hzrZMbWwTewol+9+V\npzpt1Oiy6tWNJB3kWvKiR27p8bT25dE8NzAg1qqbOlJL/FYS8uF4x1B2seMZ\nRZH8ED9faVExBU90O2j++XVmYFgzI6S1VD+3RARO7w92pzI1InYJ0lodsgHb\nQNUd73ETiaVzv5hOFpAIgktRi1NI6fSe6Nr8WbpR/AFCHKb56r5JGF+tsjJm\ne9EUKj/ys7fFblmyEtEEQ7Q9A89dBN9vy6RrhJHqt3MTGEpdStBHC5KeoTZl\naS/0eY0/JpgINqmtx5nMmVoJs0GP01i/4lj5tFdPvs28PlzvyMzUWcCjED++\n4eOr2hZScPyJk3G0Bp8UgaNcvUEBtiwbQJP3k5UShzAu579W3Y/IuJhljs2q\nK62DPTljqMQGe+y/RZhNPffHlcpteE6SbNjXaz2vH+q/EMEoFOitt77KucqB\nW0G2BXXQxG8EX5KdlUP89/38JgohLdqkgvEL1LG1QfR/dNln9HrHBPVcF69e\ngKdTNpsmHx3y/okRLcaIgLv2JkAjqqlO3Z+INiQMSsxWGsPta8qO7qqtFGEg\nYyhH\r\n=sah8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7staXMrPvr9NCYGnJFeCw1gnD+hzin2jw0yCZLitjrwIgBKqtc+Q8JMYtZeDmofqPujsd2ada+yvf39g9g9Ak1KA="}],"size":2155,"noattachment":false,"key":"/shallow-equal/-/shallow-equal-1.1.0.tgz"},"maintainers":[{"name":"moroshko","email":"michael.moroshko@gmail.com"}],"_npmUser":{"name":"moroshko","email":"michael.moroshko@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shallow-equal_1.1.0_1549353850419_0.16688818677718786"},"_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":1549353850550,"_cnpm_publish_time":1549353850550,"dist-tags":{"latest":"3.1.0"}}