microservices/auth-service/node_modules/dunder-proto
2025-04-16 10:49:46 -07:00
..
.github Initial working google auth 2025-04-16 10:49:46 -07:00
test Initial working google auth 2025-04-16 10:49:46 -07:00
.eslintrc Initial working google auth 2025-04-16 10:49:46 -07:00
.nycrc Initial working google auth 2025-04-16 10:49:46 -07:00
CHANGELOG.md Initial working google auth 2025-04-16 10:49:46 -07:00
get.d.ts Initial working google auth 2025-04-16 10:49:46 -07:00
get.js Initial working google auth 2025-04-16 10:49:46 -07:00
LICENSE Initial working google auth 2025-04-16 10:49:46 -07:00
package.json Initial working google auth 2025-04-16 10:49:46 -07:00
README.md Initial working google auth 2025-04-16 10:49:46 -07:00
set.d.ts Initial working google auth 2025-04-16 10:49:46 -07:00
set.js Initial working google auth 2025-04-16 10:49:46 -07:00
tsconfig.json Initial working google auth 2025-04-16 10:49:46 -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