{"_id":"gopd","_rev":"3690046","name":"gopd","description":"`Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation.","dist-tags":{"latest":"1.2.0"},"maintainers":[{"name":"ljharb","email":""}],"time":{"modified":"2025-02-13T05:46:48.000Z","created":"2022-11-02T06:25:24.709Z","1.2.0":"2024-12-04T16:21:52.727Z","1.1.0":"2024-11-30T05:16:14.022Z","1.0.1":"2022-11-02T06:25:24.709Z"},"users":{},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/ljharb/gopd.git"},"versions":{"1.2.0":{"name":"gopd","version":"1.2.0","description":"`Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation.","main":"index.js","exports":{".":"./index.js","./gOPD":"./gOPD.js","./package.json":"./package.json"},"sideEffects":false,"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","prelint":"tsc -p . && attw -P","lint":"eslint --ext=js,mjs .","postlint":"evalmd README.md","pretest":"npm run lint","tests-only":"tape 'test/**/*.js'","test":"npm run tests-only","posttest":"npx npm@'>=10.2' audit --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/ljharb/gopd.git"},"keywords":["ecmascript","javascript","getownpropertydescriptor","property","descriptor"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/gopd/issues"},"homepage":"https://github.com/ljharb/gopd#readme","devDependencies":{"@arethetypeswrong/cli":"^0.17.0","@ljharb/eslint-config":"^21.1.1","@ljharb/tsconfig":"^0.2.0","@types/tape":"^5.6.5","auto-changelog":"^2.5.0","encoding":"^0.1.13","eslint":"=8.8.0","evalmd":"^0.0.19","in-publish":"^2.0.1","npmignore":"^0.3.1","safe-publish-latest":"^2.0.0","tape":"^5.9.0","typescript":"next"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"engines":{"node":">= 0.4"},"_id":"gopd@1.2.0","gitHead":"7f867f97d7c895a982a3b631287fd2c36d39c2ff","types":"./index.d.ts","_nodeVersion":"23.3.0","_npmVersion":"10.9.0","dist":{"shasum":"89f56b8217bdbc8802bd299df6d7f1081d7e51a1","size":4584,"noattachment":false,"key":"/gopd/-/gopd-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/gopd/download/gopd-1.2.0.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gopd_1.2.0_1733329312532_0.9387002246933662"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-04T16:21:52.727Z","publish_time":1733329312727,"_source_registry_name":"default","_cnpm_publish_time":1733329312727},"1.1.0":{"name":"gopd","version":"1.1.0","description":"`Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation.","main":"index.js","exports":{".":"./index.js","./package.json":"./package.json"},"sideEffects":false,"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","prelint":"tsc -p . && attw -P","lint":"eslint --ext=js,mjs .","postlint":"evalmd README.md","pretest":"npm run lint","tests-only":"tape 'test/**/*.js'","test":"npm run tests-only","posttest":"npx npm@'>=10.2' audit --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/ljharb/gopd.git"},"keywords":["ecmascript","javascript","getownpropertydescriptor","property","descriptor"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/gopd/issues"},"homepage":"https://github.com/ljharb/gopd#readme","dependencies":{"get-intrinsic":"^1.2.4"},"devDependencies":{"@arethetypeswrong/cli":"^0.17.0","@ljharb/eslint-config":"^21.1.1","@ljharb/tsconfig":"^0.2.0","@types/get-intrinsic":"^1.2.3","@types/tape":"^5.6.5","auto-changelog":"^2.5.0","encoding":"^0.1.13","eslint":"=8.8.0","evalmd":"^0.0.19","in-publish":"^2.0.1","npmignore":"^0.3.1","safe-publish-latest":"^2.0.0","tape":"^5.9.0","typescript":"^5.8.0-dev.20241129"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"engines":{"node":">= 0.4"},"_id":"gopd@1.1.0","gitHead":"69fd8eadf521333bfbcf2d8d4414ab138f835ab8","types":"./index.d.ts","_nodeVersion":"23.3.0","_npmVersion":"10.9.0","dist":{"shasum":"df8f0839c2d48caefc32a025a49294d39606c912","size":4476,"noattachment":false,"key":"/gopd/-/gopd-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/gopd/download/gopd-1.1.0.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gopd_1.1.0_1732943773840_0.8010907404876537"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-11-30T05:16:14.022Z","publish_time":1732943774022,"_source_registry_name":"default","_cnpm_publish_time":1732943774022},"1.0.1":{"name":"gopd","version":"1.0.1","description":"`Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation.","main":"index.js","exports":{".":"./index.js","./package.json":"./package.json"},"sideEffects":false,"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","lint":"eslint --ext=js,mjs .","postlint":"evalmd README.md","pretest":"npm run lint","tests-only":"tape 'test/**/*.js'","test":"npm run tests-only","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/ljharb/gopd.git"},"keywords":["ecmascript","javascript","getownpropertydescriptor","property","descriptor"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/gopd/issues"},"homepage":"https://github.com/ljharb/gopd#readme","dependencies":{"get-intrinsic":"^1.1.3"},"devDependencies":{"@ljharb/eslint-config":"^21.0.0","aud":"^2.0.1","auto-changelog":"^2.4.0","eslint":"=8.8.0","evalmd":"^0.0.19","in-publish":"^2.0.1","npmignore":"^0.3.0","safe-publish-latest":"^2.0.0","tape":"^5.6.1"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"gitHead":"e3236ba6cdee15eef18be63dcc46045c035d4429","_id":"gopd@1.0.1","_nodeVersion":"19.0.0","_npmVersion":"8.19.2","dist":{"shasum":"29ff76de69dac7489b7c0918a5788e56477c332c","size":3631,"noattachment":false,"key":"/gopd/-/gopd-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/gopd/download/gopd-1.0.1.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gopd_1.0.1_1667370324550_0.7470179275451341"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-02T06:26:11.093Z","publish_time":1667370324709,"_cnpm_publish_time":1667370324709}},"readme":"# gopd <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\n`Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation.\n\n## Usage\n\n```javascript\nvar gOPD = require('gopd');\nvar assert = require('assert');\n\nif (gOPD) {\n\tassert.equal(typeof gOPD, 'function', 'descriptors supported');\n\t// use gOPD like Object.getOwnPropertyDescriptor here\n} else {\n\tassert.ok(!gOPD, 'descriptors not supported');\n}\n```\n\n[package-url]: https://npmjs.org/package/gopd\n[npm-version-svg]: https://versionbadg.es/ljharb/gopd.svg\n[deps-svg]: https://david-dm.org/ljharb/gopd.svg\n[deps-url]: https://david-dm.org/ljharb/gopd\n[dev-deps-svg]: https://david-dm.org/ljharb/gopd/dev-status.svg\n[dev-deps-url]: https://david-dm.org/ljharb/gopd#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/gopd.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/gopd.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/gopd.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=gopd\n[codecov-image]: https://codecov.io/gh/ljharb/gopd/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/ljharb/gopd/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/gopd\n[actions-url]: https://github.com/ljharb/gopd/actions\n","_attachments":{},"homepage":"https://github.com/ljharb/gopd#readme","bugs":{"url":"https://github.com/ljharb/gopd/issues"},"license":"MIT"}