# dunder-proto

> If available, the `Object.prototype.__proto__` accessor and mutator, call-bound

Latest version **1.0.1** (published 2024-12-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install dunder-proto
pnpm add dunder-proto
yarn add dunder-proto
bun add dunder-proto
```

## Health

**Score 30/100 (F)** — status: maintenance-mode.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2024-12-17 |
| First published | 2024-12-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >= 0.4 |
| Dependencies | 3 |
| Unpacked size | 12.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Jordan Harband |
| Maintainers | ljharb |

## Links

- npm: https://www.npmjs.com/package/dunder-proto
- Repository: https://github.com/es-shims/dunder-proto
- Homepage: https://github.com/es-shims/dunder-proto#readme
- Issues: https://github.com/es-shims/dunder-proto/issues
- npm.io page: https://npm.io/package/dunder-proto

## Dependencies (3)

- [gopd](https://npm.io/package/gopd.md) ^1.2.0
- [es-errors](https://npm.io/package/es-errors.md) ^1.3.0
- [call-bind-apply-helpers](https://npm.io/package/call-bind-apply-helpers.md) ^1.0.1

## Recent versions

- 1.0.1 (latest) — 2024-12-17
- 1.0.0 — 2024-12-06

## README

# dunder-proto <sup>[![Version Badge][npm-version-svg]][package-url]</sup>

[![github actions][actions-image]][actions-url]
[![coverage][codecov-image]][codecov-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]

[![npm badge][npm-badge-png]][package-url]

If available, the `Object.prototype.__proto__` accessor and mutator, call-bound.

## Getting started

```sh
npm install --save dunder-proto
```

## Usage/Examples

```js
const assert = require('assert');
const getDunder = require('dunder-proto/get');
const setDunder = require('dunder-proto/set');

const obj = {};

assert.equal('toString' in obj, true);
assert.equal(getDunder(obj), Object.prototype);

setDunder(obj, null);

assert.equal('toString' in obj, false);
assert.equal(getDunder(obj), null);
```

## Tests

Clone the repo, `npm install`, and run `npm test`

[package-url]: https://npmjs.org/package/dunder-proto
[npm-version-svg]: https://versionbadg.es/es-shims/dunder-proto.svg
[deps-svg]: https://david-dm.org/es-shims/dunder-proto.svg
[deps-url]: https://david-dm.org/es-shims/dunder-proto
[dev-deps-svg]: https://david-dm.org/es-shims/dunder-proto/dev-status.svg
[dev-deps-url]: https://david-dm.org/es-shims/dunder-proto#info=devDependencies
[npm-badge-png]: https://nodei.co/npm/dunder-proto.png?downloads=true&stars=true
[license-image]: https://img.shields.io/npm/l/dunder-proto.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/dunder-proto.svg
[downloads-url]: https://npm-stat.com/charts.html?package=dunder-proto
[codecov-image]: https://codecov.io/gh/es-shims/dunder-proto/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/es-shims/dunder-proto/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/dunder-proto
[actions-url]: https://github.com/es-shims/dunder-proto/actions

---
_Source: https://npm.io/package/dunder-proto · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
