auth/node_modules/dunder-proto
Chandresh Kerkar 9dd376df76 Initial commit: Farm Auth Service with multi-device support and device management 2025-11-28 00:47:10 +05:30
..
.github Initial commit: Farm Auth Service with multi-device support and device management 2025-11-28 00:47:10 +05:30
test Initial commit: Farm Auth Service with multi-device support and device management 2025-11-28 00:47:10 +05:30
.eslintrc Initial commit: Farm Auth Service with multi-device support and device management 2025-11-28 00:47:10 +05:30
.nycrc Initial commit: Farm Auth Service with multi-device support and device management 2025-11-28 00:47:10 +05:30
CHANGELOG.md Initial commit: Farm Auth Service with multi-device support and device management 2025-11-28 00:47:10 +05:30
LICENSE Initial commit: Farm Auth Service with multi-device support and device management 2025-11-28 00:47:10 +05:30
README.md Initial commit: Farm Auth Service with multi-device support and device management 2025-11-28 00:47:10 +05:30
get.d.ts Initial commit: Farm Auth Service with multi-device support and device management 2025-11-28 00:47:10 +05:30
get.js Initial commit: Farm Auth Service with multi-device support and device management 2025-11-28 00:47:10 +05:30
package.json Initial commit: Farm Auth Service with multi-device support and device management 2025-11-28 00:47:10 +05:30
set.d.ts Initial commit: Farm Auth Service with multi-device support and device management 2025-11-28 00:47:10 +05:30
set.js Initial commit: Farm Auth Service with multi-device support and device management 2025-11-28 00:47:10 +05:30
tsconfig.json Initial commit: Farm Auth Service with multi-device support and device management 2025-11-28 00:47:10 +05:30

README.md

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