source: imaps-frontend/node_modules/dunder-proto/README.md

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 1.9 KB
Line 
1# dunder-proto <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
2
3[![github actions][actions-image]][actions-url]
4[![coverage][codecov-image]][codecov-url]
5[![License][license-image]][license-url]
6[![Downloads][downloads-image]][downloads-url]
7
8[![npm badge][npm-badge-png]][package-url]
9
10If available, the `Object.prototype.__proto__` accessor and mutator, call-bound.
11
12## Getting started
13
14```sh
15npm install --save dunder-proto
16```
17
18## Usage/Examples
19
20```js
21const assert = require('assert');
22const getDunder = require('dunder-proto/get');
23const setDunder = require('dunder-proto/set');
24
25const obj = {};
26
27assert.equal('toString' in obj, true);
28assert.equal(getDunder(obj), Object.prototype);
29
30setDunder(obj, null);
31
32assert.equal('toString' in obj, false);
33assert.equal(getDunder(obj), null);
34```
35
36## Tests
37
38Clone the repo, `npm install`, and run `npm test`
39
40[package-url]: https://npmjs.org/package/dunder-proto
41[npm-version-svg]: https://versionbadg.es/es-shims/dunder-proto.svg
42[deps-svg]: https://david-dm.org/es-shims/dunder-proto.svg
43[deps-url]: https://david-dm.org/es-shims/dunder-proto
44[dev-deps-svg]: https://david-dm.org/es-shims/dunder-proto/dev-status.svg
45[dev-deps-url]: https://david-dm.org/es-shims/dunder-proto#info=devDependencies
46[npm-badge-png]: https://nodei.co/npm/dunder-proto.png?downloads=true&stars=true
47[license-image]: https://img.shields.io/npm/l/dunder-proto.svg
48[license-url]: LICENSE
49[downloads-image]: https://img.shields.io/npm/dm/dunder-proto.svg
50[downloads-url]: https://npm-stat.com/charts.html?package=dunder-proto
51[codecov-image]: https://codecov.io/gh/es-shims/dunder-proto/branch/main/graphs/badge.svg
52[codecov-url]: https://app.codecov.io/gh/es-shims/dunder-proto/
53[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/dunder-proto
54[actions-url]: https://github.com/es-shims/dunder-proto/actions
Note: See TracBrowser for help on using the repository browser.