{"name":"is-plain-obj","version":"4.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"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["object","is","check","test","type","plain","vanilla","pure","simple"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"8fd127e76e8a4532116aeff73e52ff3a7bb8fa25","bugs":{"url":"https://github.com/sindresorhus/is-plain-obj/issues"},"homepage":"https://github.com/sindresorhus/is-plain-obj#readme","_id":"is-plain-obj@4.0.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-NXRbBtUdBioI73y/HmOhogw/U5msYPC9DAtGkJXeFcFWSFZw0mCUsPxk/snTuJHzNKA8kLBK4rH97RMB1BfCXw==","shasum":"06c0999fd7574edf5a906ba5644ad0feb3a84d22","tarball":"http://registry-npm.ywwl.com/is-plain-obj/download/is-plain-obj-4.0.0.tgz","fileCount":5,"unpackedSize":3691,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeeDnCRA9TVsSAnZWagAAZQ0QAKPutnc99hbuIb9ug1Ch\nTrH0kL/ubFPwEK8EbmKZoH0WYuDyr+wjF9rpdjR1E23HKGM7uIZNLMMlkwAv\nbIoH+HATGdTP5Gu1tCtgOq4gKjqCO8+jPQi1htc6mCxxpS0UY7LsEquCZfjX\niOkcx5ySpmEnwm3oRfjQ4odmWfsnSJ+jLQZBzGHpYAq9TZ/4V4bFMFEXgTS1\nkiuZuq41Hy8ywi1/nM/qYT7QI6LGw89R9HhXp2p9/QegwpZw+WyZxXKbi8G2\nY6wxm04XBSt6QgSKMOhaMV+aNq+gYb01ACCeKZh5iQYAaBXabFf+y5kLdXFL\nL78pPfoJMnyCtEAUwti8JBREiLGGsO83eyqsfxQemrb5+doyzsszJH78LkLO\nonZfifSm/r+jtifsNOeZrYNq7FsnvsnZ0Kp+AHb3Ase1KdBePgC+nvPQiB8Z\nl6YlNZzgAylKGqPD5e2DLTy9HD0e8yBwo1VTMksxyL1fFxah3Nao68qJ/MJk\nF3yeHMWwVjdomMAdRHo1sCF20WqCY84gscIleRJCgsP8L1qxziwO9Yyp4vdO\na8acuS08qFpoiJrycqe1wQr3OY2m0UdjvkJvChFuYurNbfp+sVCwLbCrcmpt\nP5gI0xHtgWNPPyli6gDBgDtshob1YFBsbZkdGdjHImlYOnyf6dl1mdju+C0C\nrKqd\r\n=lvZu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBO6xZH4fs8wOhhoWt9dh3nMXDiPRC1XvTQylWoHpbSxAiBnT9ub0+HN2Od835p2FspoMSI4cToqC5ppE2XHoeqh7w=="}],"size":1890,"noattachment":false,"key":"/is-plain-obj/-/is-plain-obj-4.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-plain-obj_4.0.0_1618600167032_0.07686649967064518"},"_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":1618600167160,"_cnpm_publish_time":1618600167160,"dist-tags":{"latest":"4.1.0"}}