jwt_example/node_modules/dunder-proto
2025-04-06 10:07:32 -04:00
..
.github Partial completion of server side 2025-04-06 10:07:32 -04:00
test Partial completion of server side 2025-04-06 10:07:32 -04:00
.eslintrc Partial completion of server side 2025-04-06 10:07:32 -04:00
.nycrc Partial completion of server side 2025-04-06 10:07:32 -04:00
CHANGELOG.md Partial completion of server side 2025-04-06 10:07:32 -04:00
get.d.ts Partial completion of server side 2025-04-06 10:07:32 -04:00
get.js Partial completion of server side 2025-04-06 10:07:32 -04:00
LICENSE Partial completion of server side 2025-04-06 10:07:32 -04:00
package.json Partial completion of server side 2025-04-06 10:07:32 -04:00
README.md Partial completion of server side 2025-04-06 10:07:32 -04:00
set.d.ts Partial completion of server side 2025-04-06 10:07:32 -04:00
set.js Partial completion of server side 2025-04-06 10:07:32 -04:00
tsconfig.json Partial completion of server side 2025-04-06 10:07:32 -04: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