</>PackageGraphPackageGraph

gopd

npmv1.2.0TypeScript

`Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation.

Adopt with care

gopd is usable, with caveats. Last published 644 days ago. 2 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • CMaintenance: grade C, Fair — worth a look.

    Last published 644 days ago. 2 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 9.6 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding gopd to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

9.6 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
node >= 0.4
Module format
CommonJS only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the gopd README.

javascriptFull README ↗
var gOPD = require('gopd');
var assert = require('assert');

if (gOPD) {
	assert.equal(typeof gOPD, 'function', 'descriptors supported');
	// use gOPD like Object.getOwnPropertyDescriptor here
} else {
	assert.ok(!gOPD, 'descriptors not supported');
}

gopd vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
gopdthis page07MIT1 year ago
es-define-property131.3M4MIT1 day ago
hasown08MIT1 day ago
define-data-property02MIT1 day ago
eslint138.4M279MIT1 day ago
call-bind80.7M5MIT1 day ago

Dependencies

Declared by gopd v1.2.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (13)

@arethetypeswrong/cli ^0.17.0@ljharb/eslint-config ^21.1.1@ljharb/tsconfig ^0.2.0@types/tape ^5.6.5auto-changelog ^2.5.0encoding ^0.1.13eslint =8.8.0evalmd ^0.0.19in-publish ^2.0.1npmignore ^0.3.1safe-publish-latest ^2.0.0tape ^5.9.0typescript next

Used by

Popular packages that depend on gopd.

Relationship graph

Dependencies (left) and dependents (right) of gopd.

Frequently installed together

Release history

1 release in the last two years, typically about 759 days apart.

Recent versions of gopd
VersionPublishedSizeLicense
1.2.0latest1 year ago9.6 KBMIT
1.1.01 year ago9.4 KBMIT
1.0.13 years ago7.5 KBMIT

Overview

gopd is an npm package that `Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation. It has 7 known dependents in the graph. The latest version is 1.2.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need `Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation and value a focused solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Funding

Frequently asked questions

Should I use gopd?

gopd is usable, with caveats. Last published 644 days ago. 2 releases in the last 2 years.

How do I install gopd?

Run `npm install gopd` to add gopd to your npm project.

What license is gopd released under?

gopd is distributed under the MIT license.

How popular is gopd?

npm does not publish download counts. Within PackageGraph's crawl, 7 known packages depend on gopd.

Is gopd still maintained?

The most recent release of gopd (v1.2.0) was published 1 year ago.

Does gopd run install scripts?

No. gopd does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.