Elbab/node_modules/dunder-proto
2026-04-03 20:55:43 +03:00
..
.github Başlangıç 2026-04-03 20:55:43 +03:00
test Başlangıç 2026-04-03 20:55:43 +03:00
.eslintrc Başlangıç 2026-04-03 20:55:43 +03:00
.nycrc Başlangıç 2026-04-03 20:55:43 +03:00
CHANGELOG.md Başlangıç 2026-04-03 20:55:43 +03:00
get.d.ts Başlangıç 2026-04-03 20:55:43 +03:00
get.js Başlangıç 2026-04-03 20:55:43 +03:00
LICENSE Başlangıç 2026-04-03 20:55:43 +03:00
package.json Başlangıç 2026-04-03 20:55:43 +03:00
README.md Başlangıç 2026-04-03 20:55:43 +03:00
set.d.ts Başlangıç 2026-04-03 20:55:43 +03:00
set.js Başlangıç 2026-04-03 20:55:43 +03:00
tsconfig.json Başlangıç 2026-04-03 20:55:43 +03: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