ken_nogi/NodeJS/ExcelToPDF/node_modules/dunder-proto
Kenichiro NOGI 51a95c5e21 NodeJS
2025-07-10 10:12:37 +09:00
..
.github NodeJS 2025-07-10 10:12:37 +09:00
test NodeJS 2025-07-10 10:12:37 +09:00
.eslintrc NodeJS 2025-07-10 10:12:37 +09:00
.nycrc NodeJS 2025-07-10 10:12:37 +09:00
CHANGELOG.md NodeJS 2025-07-10 10:12:37 +09:00
get.d.ts NodeJS 2025-07-10 10:12:37 +09:00
get.js NodeJS 2025-07-10 10:12:37 +09:00
LICENSE NodeJS 2025-07-10 10:12:37 +09:00
package.json NodeJS 2025-07-10 10:12:37 +09:00
README.md NodeJS 2025-07-10 10:12:37 +09:00
set.d.ts NodeJS 2025-07-10 10:12:37 +09:00
set.js NodeJS 2025-07-10 10:12:37 +09:00
tsconfig.json NodeJS 2025-07-10 10:12:37 +09: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