access-manager/node_modules/dunder-proto
2026-04-25 23:57:04 +00:00
..
.github feat: unified admin dashboard + service registry cleanup 2026-04-25 23:57:04 +00:00
test feat: unified admin dashboard + service registry cleanup 2026-04-25 23:57:04 +00:00
.eslintrc feat: unified admin dashboard + service registry cleanup 2026-04-25 23:57:04 +00:00
.nycrc feat: unified admin dashboard + service registry cleanup 2026-04-25 23:57:04 +00:00
CHANGELOG.md feat: unified admin dashboard + service registry cleanup 2026-04-25 23:57:04 +00:00
get.d.ts feat: unified admin dashboard + service registry cleanup 2026-04-25 23:57:04 +00:00
get.js feat: unified admin dashboard + service registry cleanup 2026-04-25 23:57:04 +00:00
LICENSE feat: unified admin dashboard + service registry cleanup 2026-04-25 23:57:04 +00:00
package.json feat: unified admin dashboard + service registry cleanup 2026-04-25 23:57:04 +00:00
README.md feat: unified admin dashboard + service registry cleanup 2026-04-25 23:57:04 +00:00
set.d.ts feat: unified admin dashboard + service registry cleanup 2026-04-25 23:57:04 +00:00
set.js feat: unified admin dashboard + service registry cleanup 2026-04-25 23:57:04 +00:00
tsconfig.json feat: unified admin dashboard + service registry cleanup 2026-04-25 23:57:04 +00:00

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