dunder-proto (1.0.1)

Published 2026-02-24 13:55:43 +00:00 by atheaadmin

Installation

registry=
npm install dunder-proto@1.0.1
"dunder-proto": "1.0.1"

About this package

dunder-proto Version Badge

github actions coverage License Downloads

npm badge

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

Getting started

npm install --save dunder-proto

Usage/Examples

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

Dependencies

Dependencies

ID Version
call-bind-apply-helpers ^1.0.1
es-errors ^1.3.0
gopd ^1.2.0

Development Dependencies

ID Version
@arethetypeswrong/cli ^0.17.1
@ljharb/eslint-config ^21.1.1
@ljharb/tsconfig ^0.2.2
@types/tape ^5.7.0
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
nyc ^10.3.2
safe-publish-latest ^2.0.0
tape ^5.9.0
typescript next
Details
npm
2026-02-24 13:55:43 +00:00
0
Jordan Harband
MIT
latest
4.9 KiB
Assets (1)
Versions (1) View all
1.0.1 2026-02-24