/ etherpad / node_modules / ep_etherpad-lite / plugin_packages / dunder-proto /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]test/3 months ago -  
[DIR]node_modules/3 months ago -  
[   ]tsconfig.json40 years ago116  
[   ]set.js40 years ago1.2K 
[TXT]set.d.ts40 years ago144  
[   ]package.json40 years ago2.1K 
[   ]get.js40 years ago1.0K 
[TXT]get.d.ts40 years ago121  
[TXT]README.md40 years ago1.9K 
[   ]LICENSE40 years ago1.0K 
[TXT]CHANGELOG.md40 years ago1.5K 
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

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80