{"_id":"get-power","name":"get-power","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.3":{"name":"get-power","version":"1.0.3","description":"Robustly get the [[Prototype]] of an object","keywords":["get","proto","prototype","getPrototypeOf","[[Prototype]]"],"homepage":"https://github.com/ljharb/get-power#readme","bugs":{"url":"https://github.com/ljharb/get-power/issues"},"repository":{"type":"git","url":"git+https://github.com/ljharb/get-power.git"},"license":"MIT","author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"type":"commonjs","exports":{".":"./index.js","./Reflect.getPrototypeOf":"./Reflect.getPrototypeOf.js","./Object.getPrototypeOf":"./Object.getPrototypeOf.js","./package.json":"./package.json"},"main":"index.js","types":"./index.d.ts","directories":{"test":"test"},"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublish":"not-in-publish","pretest":"npm run --silent lint","test":"npm run tests-only","posttest":"npx npm@\">=10.2\" audit --production","tests-only":"nyc tape 'test/**/*.js'","prelint":"evalmd README.md","lint":"eslint --ext=js,mjs .","postlint":"tsc && attw -P","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)\")\""},"dependencies":{"dunder-proto":"^1.0.1","es-object-atoms":"^1.0.0"},"devDependencies":{"@arethetypeswrong/cli":"^0.17.2","@ljharb/eslint-config":"^21.1.1","@ljharb/tsconfig":"^0.2.3","@types/tape":"^5.8.0","auto-changelog":"^2.5.0","eslint":"=8.8.0","evalmd":"^0.0.19","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.9.0","typescript":"next"},"engines":{"node":">= 0.4"},"publishConfig":{"ignore":[".github/workflows"]},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"testling":{"files":"test/index.js"},"_id":"get-power@1.0.3","_nodeVersion":"26.8.1","_npmVersion":"11.19.0","dist":{"integrity":"sha512-RtXfFpoqZ/NkMMM+xnxcC0HMuKyYRHIWcKUalWAkQtCAv6uSQ0IDeOSWjVyUkeiz1CNERA6SK6FLgtqPh+nxHA==","shasum":"811001a696d3b0cb1676e8522fa3d2d1694ca61c","tarball":"https://registry.npmjs.org/get-power/-/get-power-1.0.3.tgz","fileCount":14,"unpackedSize":16141,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBEj1FdmTpHcZp5JX3H2Rr7f9kxSAewHpI2+c9wpFG/YAiEAt6aA8WQhxoInJKYlq9mMpUupaMjSVfKhNP2Z3GNzq9w="}]},"_npmUser":{"name":"adihtalents","email":"adi@halonatalents.com"},"maintainers":[{"name":"adihtalents","email":"adi@halonatalents.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/get-power_1.0.3_1789204528177_0.28546690456733126"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-12T09:15:28.143Z","1.0.3":"2026-09-12T09:15:28.324Z","modified":"2026-09-12T09:15:28.555Z"},"maintainers":[{"name":"adihtalents","email":"adi@halonatalents.com"}],"description":"Robustly get the [[Prototype]] of an object","homepage":"https://github.com/ljharb/get-power#readme","keywords":["get","proto","prototype","getPrototypeOf","[[Prototype]]"],"repository":{"type":"git","url":"git+https://github.com/ljharb/get-power.git"},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"bugs":{"url":"https://github.com/ljharb/get-power/issues"},"license":"MIT","readme":"# get-power <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\nRobustly get the [[Prototype]] of an object. Uses the best available method.\n\n## Getting started\n\n```sh\nnpm install --save get-power\n```\n\n## Usage/Examples\n\n```js\nconst assert = require('assert');\nconst getProto = require('get-power');\n\nconst a = { a: 1, b: 2, [Symbol.toStringTag]: 'foo' };\nconst b = { c: 3, __proto__: a };\n\nassert.equal(getProto(b), a);\nassert.equal(getProto(a), Object.prototype);\nassert.equal(getProto({ __proto__: null }), null);\n```\n\n## Tests\n\nClone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/get-power\n[npm-version-svg]: https://versionbadg.es/ljharb/get-power.svg\n[deps-svg]: https://david-dm.org/ljharb/get-power.svg\n[deps-url]: https://david-dm.org/ljharb/get-power\n[dev-deps-svg]: https://david-dm.org/ljharb/get-power/dev-status.svg\n[dev-deps-url]: https://david-dm.org/ljharb/get-power#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/get-power.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/get-power.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/get-power.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=get-power\n[codecov-image]: https://codecov.io/gh/ljharb/get-power/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/ljharb/get-power/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/get-power\n[actions-url]: https://github.com/ljharb/get-power/actions\n","readmeFilename":"README.md","_rev":"1-ecd34302075e7e73a359a34bbda8db32"}