{"name":"is-plain-obj","version":"3.0.0","description":"Check if a value is a plain object","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-plain-obj.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["object","is","check","test","type","plain","vanilla","pure","simple"],"devDependencies":{"ava":"^2.4.0","tsd":"^0.13.1","xo":"^0.33.1"},"gitHead":"eb9663c8e9cd3b4ae1b9438916d1fc29991387e0","bugs":{"url":"https://github.com/sindresorhus/is-plain-obj/issues"},"homepage":"https://github.com/sindresorhus/is-plain-obj#readme","_id":"is-plain-obj@3.0.0","_nodeVersion":"14.11.0","_npmVersion":"6.14.8","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==","shasum":"af6f2ea14ac5a646183a5bbdb5baabbc156ad9d7","tarball":"http://registry-npm.ywwl.com/is-plain-obj/download/is-plain-obj-3.0.0.tgz","fileCount":5,"unpackedSize":3823,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhNZ6CRA9TVsSAnZWagAA6+EP/0i5grTrbiJM2g3KvJ0a\nNjS2sWSygDfk8lTG2Fxwwjg0+bbnTk5Fd/KJA7gxIliLhAlvAa2f3mrsJMm8\nCgu/ZbpIsg1odnykeUVBU4AbBIgjeTTKLtmcMb3LJz/O9+zmtTlrfhiHG6oW\n82VoZZrAN9Rv0PSPfRE7rjOBVmO4uXl2O15A0YFaCxEi6N8w/ISzaXJg9qFr\nExb9JdBtmA56isaBWK01OWIhPVcodolrGZtiXOS8olQvJdR2UpIMFqIJtuzn\nZObJLYLUe+TlqFFoNLD5NeaZxfLcAILsGqXwi8AnwzWV2fTvl+OaMQ7yXg/P\nK8BFB3qmjRfqLpXVPFGJDwfjNK8KJuOsJ9Pj0hlaUog4H9QCGEv261t+MlM4\n4F96UOofXCnczdzBiS1m432tX1ldu2+OaG11jjAObEr4kI589f8UcyE8F4ch\nTYO61NOBk5FrYnWwk2CGzkj6Ck7OIqIphK3iYkkjNL3hXwHkv5cE+7Im6bib\nDg3XSE3W94XAOT5tJ86lqvnkklJ07eKgpyjhtDu8AGOKSpR/0LrqkhNxV68J\nWJcB42pGZ8q1NeeaUA3LBvtlhOyYigEYTug/6VlSctN2CX1z0GVBCBhANhiC\nm0taZGLaKVG2S/Aj1sYcphACtEQ2HTyh9BBAePc7D4381UWcUZw0DCSyZsnv\nJ4p+\r\n=z9zE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfHh3rrYJbh7NUyKyr9qCiwG70cKlphxn3MMUdKuf/rAIhALvzxQFhmEHTNX67i7c0uU8ZwsgzQCIMJAffZD6f3Wjs"}],"size":1958,"noattachment":false,"key":"/is-plain-obj/-/is-plain-obj-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-plain-obj_3.0.0_1602541177692_0.5816068296449455"},"_hasShrinkwrap":false,"readme":"# is-plain-obj\n\n> Check if a value is a plain object\n\nAn object is plain if it's created by either `{}`, `new Object()`, or `Object.create(null)`.\n\n## Install\n\n```\n$ npm install is-plain-obj\n```\n\n## Usage\n\n```js\nimport isPlainObject from 'is-plain-obj';\nimport {runInNewContext} from 'node:vm';\n\nisPlainObject({foo: 'bar'});\n//=> true\n\nisPlainObject(new Object());\n//=> true\n\nisPlainObject(Object.create(null));\n//=> true\n\n// This works across realms\nisPlainObject(runInNewContext('({})'));\n//=> true\n\nisPlainObject([1, 2, 3]);\n//=> false\n\nclass Unicorn {}\nisPlainObject(new Unicorn());\n//=> false\n\nisPlainObject(Math);\n//=> false\n```\n\n## Related\n\n- [is-obj](https://github.com/sindresorhus/is-obj) - Check if a value is an object\n- [is](https://github.com/sindresorhus/is) - Type check values\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-is-plain-obj?utm_source=npm-is-plain-obj&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","publish_time":1602541177844,"_cnpm_publish_time":1602541177844,"dist-tags":{"latest":"4.1.0"}}