scraper/node_modules/dunder-proto
2026-04-21 19:21:04 +07:00
..
.github Api Ai 2026-04-21 19:21:04 +07:00
test Api Ai 2026-04-21 19:21:04 +07:00
.eslintrc Api Ai 2026-04-21 19:21:04 +07:00
.nycrc Api Ai 2026-04-21 19:21:04 +07:00
CHANGELOG.md Api Ai 2026-04-21 19:21:04 +07:00
get.d.ts Api Ai 2026-04-21 19:21:04 +07:00
get.js Api Ai 2026-04-21 19:21:04 +07:00
LICENSE Api Ai 2026-04-21 19:21:04 +07:00
package.json Api Ai 2026-04-21 19:21:04 +07:00
README.md Api Ai 2026-04-21 19:21:04 +07:00
set.d.ts Api Ai 2026-04-21 19:21:04 +07:00
set.js Api Ai 2026-04-21 19:21:04 +07:00
tsconfig.json Api Ai 2026-04-21 19:21:04 +07: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