{"name":"object.getprototypeof","version":"1.0.0","description":"An ES5 mostly-spec-compliant `Object.getPrototypeOf` sham/polyfill/replacement that works in as many engines as possible","main":"index.js","type":"commonjs","exports":{".":[{"import":"./index.mjs","default":"./index.js"},"./index.js"],"./polyfill":[{"import":"./polyfill.mjs","default":"./polyfill.js"},"./polyfill.js"],"./implementation":[{"import":"./implementation.mjs","default":"./implementation.js"},"./implementation.js"],"./shim":[{"import":"./shim.mjs","default":"./shim.js"},"./shim.js"],"./auto":[{"import":"./auto.mjs","default":"./auto.js"},"./auto.js"],"./package.json":"./package.json"},"scripts":{"prepublish":"safe-publish-latest","prelint":"evalmd README.md","lint":"eslint .","postlint":"es-shim-api --bound","pretest":"npm run lint","tests-only":"nyc tape 'test/**/*.js'","tests-esm":"nyc node test/index.mjs","test":"npm run tests-only && npm run tests-esm","posttest":"aud --production","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"repository":{"type":"git","url":"git+https://github.com/es-shims/Object.getPrototypeOf.git"},"keywords":["Object.getPrototypeOf","proto","__proto__","[[Prototype]]","getPrototypeOf","ES5","shim","polyfill","es-shim API","browser"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/es-shims/Object.getPrototypeOf/issues"},"homepage":"https://github.com/es-shims/Object.getPrototypeOf","engines":{"node":">= 0.4"},"devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^17.3.0","aud":"^1.1.3","auto-changelog":"^2.2.1","eslint":"^7.16.0","evalmd":"^0.0.19","nyc":"^10.3.2","safe-publish-latest":"^1.1.4","tape":"^5.0.1"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"dependencies":{"call-bind":"^1.0.0","define-properties":"^1.1.3","es-abstract":"^1.18.0-next.1","get-intrinsic":"^1.0.2","which-builtin-type":"^1.0.1"},"gitHead":"e8c40e3fc65dd9427df95d6c0367c664dad8d254","_id":"object.getprototypeof@1.0.0","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"integrity":"sha512-Xg+wYtttBirRszQRSCKJfxrhT4pJVo3NH0n5fRPpaisIYBDpHfJfvfQ3ny+KP/OaQfinhzIpx3OHAvCKpPox2Q==","shasum":"910861088487fe5b4207d6cc4774bede99351109","tarball":"http://registry-npm.ywwl.com/object.getprototypeof/download/object.getprototypeof-1.0.0.tgz","fileCount":22,"unpackedSize":19222,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/f4ECRA9TVsSAnZWagAAdYwP/1j7wKVDOcV6Ge5Q2mke\n2z+6UM0rOG7n4DTKNwcqrtmNy6rb/6lEVUR/ZKA0wu5kTsLqXSybUAsg8QzV\nlf9QdsbmYQcBxt2i1qs793gksqc7xh6rJvI0HOA3YUjRi1EZ57jDyI2FSEMb\nXvkobAdRzwkJcC8//vMj9gU8ZQetD+IUNzSH0yFhDv5Fedq06SxM7Jl8aa0O\nMcHDuimgLEZXp9uReES8gkV+Uj3fV7mmk4qOjqF4r5B1+DdMzqUuJxwJ0zG8\nWopDCZyRYgMmNAzmpTwjRlGr2TrdFHn+bndBh+3yjMxTVW4Bja7g5wWcB8si\nUj+WoAYBFdTchya520AjkA3REdYAsOgYl84ZOo/eth9E47tnCijQDSVorPPw\nZ0GPCgSDwI7ksm0O/ceXzVDJBPKCFgjzd+a640wBrDCXzcv4+j+QEFRiPPSJ\nwSFInBoceThqHLiz6L5oWs2kZ0IfTKVyMX0KjPs3M5+tlYCHIPzXhc8azZlE\n3WV7iajkQWbzG2icfZ9pittWuZxVaY0Nl49mG7nqd4AhLcNpvskVMQo8PfEO\nEf2DQ7znNiIMnUBGVBhtXh3VjwEyDRDweJkrvVPBTF3EB71Exh98S1ZoY+09\n1hUgF54+EjtX3YB2uacec682X70o7JuesCc8TKayvHq+hPUpe75Taa7QUcTv\nA0Nd\r\n=dmnT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFEwXD2oJST5pwCzytySiCQn/Trh4kJD2Y1bZUOGJMqsAiEAuYcFeSUcc5wlPL5bywIafphHMJCBwckalDkWNdptqX8="}],"size":6766,"noattachment":false,"key":"/object.getprototypeof/-/object.getprototypeof-1.0.0.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/object.getprototypeof_1.0.0_1610481156406_0.014475929211994032"},"_hasShrinkwrap":false,"readme":"# object.getprototypeof <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![dependency status][deps-svg]][deps-url]\n[![dev dependency status][dev-deps-svg]][dev-deps-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\nAn ES5 mostly-spec-compliant `Object.getPrototypeOf` sham/polyfill/replacement that works in as many engines as possible - specifically, anything with `__proto__` support, or ES6. Built-in types will also work correctly in older engines.\n\nThis package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the [spec](https://www.ecma-international.org/ecma-262/5.1/).\n\n## Example\n\n```js\nvar getPrototypeOf = require('object.getprototypeof');\nvar assert = require('assert');\n\nassert.equal(getPrototypeOf(true), Boolean.prototype);\nassert.equal(getPrototypeOf(42), Number.prototype);\nassert.equal(getPrototypeOf(''), String.prototype);\nassert.equal(getPrototypeOf(/a/g), RegExp.prototype);\nassert.equal(getPrototypeOf(new Date()), Date.prototype);\nassert.equal(getPrototypeOf(function () {}), Function.prototype);\nassert.equal(getPrototypeOf([]), Array.prototype);\nassert.equal(getPrototypeOf({}), Object.prototype);\n```\n\n```js\nvar getPrototypeOf = require('object.getprototypeof');\nvar assert = require('assert');\n/* when Object.getPrototypeOf is not present */\ndelete Object.getPrototypeOf;\nvar shimmed = getPrototypeOf.shim();\nassert.equal(shimmed, getPrototypeOf.getPolyfill());\n\nassert.equal(Object.getPrototypeOf(true), Boolean.prototype);\nassert.equal(Object.getPrototypeOf(42), Number.prototype);\nassert.equal(Object.getPrototypeOf(''), String.prototype);\nassert.equal(Object.getPrototypeOf(/a/g), RegExp.prototype);\nassert.equal(Object.getPrototypeOf(new Date()), Date.prototype);\nassert.equal(Object.getPrototypeOf(function () {}), Function.prototype);\nassert.equal(Object.getPrototypeOf([]), Array.prototype);\nassert.equal(Object.getPrototypeOf({}), Object.prototype);\n```\n\n```js\nvar getPrototypeOf = require('object.getprototypeof');\nvar assert = require('assert');\n/* when Object.getPrototypeOf is present */\nvar shimmedGetPrototypeOf = getPrototypeOf.shim();\nassert.equal(shimmedGetPrototypeOf, Object.getPrototypeOf);\nassert.equal(Object.getPrototypeOf([]), Array.prototype);\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/object.getprototypeof\n[npm-version-svg]: https://versionbadg.es/es-shims/Object.getPrototypeOf.svg\n[deps-svg]: https://david-dm.org/es-shims/Object.getPrototypeOf.svg\n[deps-url]: https://david-dm.org/es-shims/Object.getPrototypeOf\n[dev-deps-svg]: https://david-dm.org/es-shims/Object.getPrototypeOf/dev-status.svg\n[dev-deps-url]: https://david-dm.org/es-shims/Object.getPrototypeOf#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/object.getprototypeof.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/object.getprototypeof.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/object.getprototypeof.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=object.getprototypeof\n[codecov-image]: https://codecov.io/gh/es-shims/Object.getPrototypeOf/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/es-shims/Object.getPrototypeOf/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/Object.getPrototypeOf\n[actions-url]: https://github.com/es-shims/Object.getPrototypeOf/actions\n","publish_time":1610481156538,"_cnpm_publish_time":1610481156538,"dist-tags":{"latest":"1.0.7"}}