AeThex-Engine-Core/services/auth-service/node_modules/dunder-proto
mrpiglr 190b6b2eab
Some checks are pending
Build AeThex Engine / build-windows (push) Waiting to run
Build AeThex Engine / build-linux (push) Waiting to run
Build AeThex Engine / build-macos (push) Waiting to run
Build AeThex Engine / create-release (push) Blocked by required conditions
Deploy Docsify Documentation / build (push) Waiting to run
Deploy Docsify Documentation / deploy (push) Blocked by required conditions
chore: sync local changes to Forgejo
2026-03-13 00:37:06 -07:00
..
.github chore: sync local changes to Forgejo 2026-03-13 00:37:06 -07:00
test chore: sync local changes to Forgejo 2026-03-13 00:37:06 -07:00
.eslintrc chore: sync local changes to Forgejo 2026-03-13 00:37:06 -07:00
.nycrc chore: sync local changes to Forgejo 2026-03-13 00:37:06 -07:00
CHANGELOG.md chore: sync local changes to Forgejo 2026-03-13 00:37:06 -07:00
get.d.ts chore: sync local changes to Forgejo 2026-03-13 00:37:06 -07:00
get.js chore: sync local changes to Forgejo 2026-03-13 00:37:06 -07:00
LICENSE chore: sync local changes to Forgejo 2026-03-13 00:37:06 -07:00
package.json chore: sync local changes to Forgejo 2026-03-13 00:37:06 -07:00
README.md chore: sync local changes to Forgejo 2026-03-13 00:37:06 -07:00
set.d.ts chore: sync local changes to Forgejo 2026-03-13 00:37:06 -07:00
set.js chore: sync local changes to Forgejo 2026-03-13 00:37:06 -07:00
tsconfig.json chore: sync local changes to Forgejo 2026-03-13 00:37:06 -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