LarpixClient/electron/node_modules/dunder-proto
olcxja cca8b02fea
Some checks failed
Android Build / publish (push) Successful in 33s
Linux Build / publish (push) Failing after 25s
Update gitignore (sorry)
2026-05-10 14:02:17 +02:00
..
.github Update gitignore (sorry) 2026-05-10 14:02:17 +02:00
test Update gitignore (sorry) 2026-05-10 14:02:17 +02:00
.eslintrc Update gitignore (sorry) 2026-05-10 14:02:17 +02:00
.nycrc Update gitignore (sorry) 2026-05-10 14:02:17 +02:00
CHANGELOG.md Update gitignore (sorry) 2026-05-10 14:02:17 +02:00
get.d.ts Update gitignore (sorry) 2026-05-10 14:02:17 +02:00
get.js Update gitignore (sorry) 2026-05-10 14:02:17 +02:00
LICENSE Update gitignore (sorry) 2026-05-10 14:02:17 +02:00
package.json Update gitignore (sorry) 2026-05-10 14:02:17 +02:00
README.md Update gitignore (sorry) 2026-05-10 14:02:17 +02:00
set.d.ts Update gitignore (sorry) 2026-05-10 14:02:17 +02:00
set.js Update gitignore (sorry) 2026-05-10 14:02:17 +02:00
tsconfig.json Update gitignore (sorry) 2026-05-10 14:02:17 +02: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