gui/ui/node_modules.bak/dunder-proto
Snider fad16c8c76
Some checks failed
Security Scan / security (push) Failing after 34s
Test / test (push) Failing after 1m44s
chore: sync workspace dependencies
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-15 15:44:56 +00:00
..
.github chore: sync workspace dependencies 2026-03-15 15:44:56 +00:00
test chore: sync workspace dependencies 2026-03-15 15:44:56 +00:00
.eslintrc chore: sync workspace dependencies 2026-03-15 15:44:56 +00:00
.nycrc chore: sync workspace dependencies 2026-03-15 15:44:56 +00:00
CHANGELOG.md chore: sync workspace dependencies 2026-03-15 15:44:56 +00:00
get.d.ts chore: sync workspace dependencies 2026-03-15 15:44:56 +00:00
get.js chore: sync workspace dependencies 2026-03-15 15:44:56 +00:00
LICENSE chore: sync workspace dependencies 2026-03-15 15:44:56 +00:00
package.json chore: sync workspace dependencies 2026-03-15 15:44:56 +00:00
README.md chore: sync workspace dependencies 2026-03-15 15:44:56 +00:00
set.d.ts chore: sync workspace dependencies 2026-03-15 15:44:56 +00:00
set.js chore: sync workspace dependencies 2026-03-15 15:44:56 +00:00
tsconfig.json chore: sync workspace dependencies 2026-03-15 15:44:56 +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