{"_id":"get-proto-x","name":"get-proto-x","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"get-proto-x","version":"1.0.0","description":"Robustly get the [[Prototype]] of an object","homepage":"https://github.com/xsfj/get-proto-x#readme","bugs":{"url":"https://github.com/xsfj/get-proto-x/issues"},"repository":{"type":"git","url":"git+https://github.com/xsfj/get-proto-x.git"},"license":"MIT","author":{"name":"me"},"type":"commonjs","main":"index.js","scripts":{"test":"tape test/index.js"},"dependencies":{"dunder-proto-x":"^1.0.0","es-error-intrinsics":"^1.0.1","object.getprototypeof-x":"^1.0.0","reflect.getprototypeof-x":"^1.0.0"},"devDependencies":{"tape":"^5.9.0"},"gitHead":"af1029170d4f73738da7f079ddcf0259cee7039f","types":"./index.d.ts","_id":"get-proto-x@1.0.0","_nodeVersion":"24.12.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-u0bmIz791AvxvqQ4vTG20A4SXgagm1u50NGNAvDPaZu+ufNx8U7YufYtzinczdTn7wNXSbu+eMORQ4tXG26yhQ==","shasum":"45dd246c67f72e6b12b7aa2e32c9166900aca519","tarball":"https://registry.npmjs.org/get-proto-x/-/get-proto-x-1.0.0.tgz","fileCount":5,"unpackedSize":4746,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCYZgeFYJvMUPhT5WSrjHLUlsv7WHTwOmlcV/KbglhSwQIgc4XAsO44eujqtFCqUohsTHYUoeOGwweA5Nlnez1lqCw="}]},"_npmUser":{"name":"xsfj","email":"oagde5@gmail.com"},"directories":{},"maintainers":[{"name":"xsfj","email":"oagde5@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/get-proto-x_1.0.0_1768339950752_0.16446698771432344"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-13T21:32:30.751Z","1.0.0":"2026-01-13T21:32:30.907Z","modified":"2026-01-13T21:32:31.088Z"},"maintainers":[{"name":"xsfj","email":"oagde5@gmail.com"}],"description":"Robustly get the [[Prototype]] of an object","homepage":"https://github.com/xsfj/get-proto-x#readme","repository":{"type":"git","url":"git+https://github.com/xsfj/get-proto-x.git"},"author":{"name":"me"},"bugs":{"url":"https://github.com/xsfj/get-proto-x/issues"},"license":"MIT","readme":"# get-proto\r\n\r\nRobustly get the [[Prototype]] of an object. Uses the best available method.\r\n\r\n## Getting started\r\n\r\n```sh\r\nnpm install --save get-proto\r\n```\r\n\r\n## Usage\r\n\r\n```js\r\nconst assert = require(\"assert\")\r\nconst getProto = require(\"get-proto\")\r\n\r\nconst a = { a: 1, b: 2, [Symbol.toStringTag]: \"foo\" }\r\nconst b = { c: 3, __proto__: a }\r\n\r\nassert.equal(getProto(b), a)\r\nassert.equal(getProto(a), Object.prototype)\r\nassert.equal(getProto({ __proto__: null }), null)\r\n```\r\n\r\n## Tests\r\n\r\nClone the repo, `npm install`, and run `npm test`\r\n","readmeFilename":"README.md","_rev":"1-d11ffd5536310c8f7c959e288515798c"}