{"name":"is-plain-obj","version":"4.1.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"},"types":"./index.d.ts","gitHead":"68e8cc77bb1bbd0bf7d629d3574b6ca70289b2cc","bugs":{"url":"https://github.com/sindresorhus/is-plain-obj/issues"},"homepage":"https://github.com/sindresorhus/is-plain-obj#readme","_id":"is-plain-obj@4.1.0","_nodeVersion":"14.19.2","_npmVersion":"8.3.2","dist":{"integrity":"sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==","shasum":"d65025edec3657ce032fd7db63c97883eaed71f0","tarball":"http://registry-npm.ywwl.com/is-plain-obj/download/is-plain-obj-4.1.0.tgz","fileCount":5,"unpackedSize":4080,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLg0iwC+wT6+MdTHIEG/5zDEl15Y1/7oyJWyeA0ckW9AIhAORRKxuiLzlYxbGbTMByBRcD4Atot9WipLAbZH2wqoYv"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiqf8BACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrpUw/9E5Q2YwGlBqc26ZDxVrRclCjGVdh5sXwwYz55TDXUxpFX9aSA\r\nIj1HlW75hVqPi3VcrV2RZW2kSwiKwU0OnJComRFmQBqKmSZAk8V+i8Ly8oem\r\nwf/Ad/Aowfc3gTMGleibGoPKTiGlnVMLsVbu0KJAMqeyxmWnc8aNVVZjBR8m\r\nlTgyzdjjswXxU1A5Z1owJQdZ/eXHqiW8idr1s5v8pT97QQ4qAlSlcmK9K9HN\r\nyHZlePQlzpPc1oULTisWxoMa90so4R4jyckwFy9iEz2fGLoolCbiSfvBuBOv\r\n5K9d2fi5eBbBAobzIYuAIaFo+Xe2OlGo4cDzirJhmwu/r1nxmd8O1jKpwF+4\r\nzGZDG7a8dfQReghkL/sLtU2OvAS1Dht1OaFSAKaXYoBUUkf3qQ3JFdDx42b0\r\nkzrbEtUfypdh7v+o92UATiIbGooy7db6UOwsHvuyVZNeEMOmjx6hwSf7H0WZ\r\nlzxtYWgTjODNuxIo8TIVCHr3zRb3rY2MU0j0+AvfUm+Sml8o53uwWi3MhTYw\r\n4zLK5r0HizcBC9wxT2B6nJiuB5bMKkqfYzWpXgVy0Ar3IhhwSV5YxPXlLeXL\r\nJWWtu+CBwbmgmKpXyiXuMxxIYERmSsjhNEhxxt1kcFzl0VKImkr3qN7tyhez\r\nf8TKxh3ucQ/Amo3CEcqRK835YHlootc9MHE=\r\n=1Lzq\r\n-----END PGP SIGNATURE-----\r\n","size":1961,"noattachment":false,"key":"/is-plain-obj/-/is-plain-obj-4.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-plain-obj_4.1.0_1655308033586_0.12893565523323836"},"_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":1655308033746,"_cnpm_publish_time":1655308033746,"dist-tags":{"latest":"4.1.0"}}