Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
test/ | 25-Sep-2023 | - | 20 | 15 | ||
.eslintrc | D | 24-Sep-2023 | 43 | 6 | 4 | |
CHANGELOG.md | D | 24-Sep-2023 | 1.3 KiB | 24 | 15 | |
LICENSE | D | 24-Sep-2023 | 1 KiB | 22 | 17 | |
README.md | D | 24-Sep-2023 | 1.6 KiB | 39 | 30 | |
index.js | D | 24-Sep-2023 | 197 | 12 | 8 | |
package.json | D | 24-Sep-2023 | 1.9 KiB | 75 | 74 |
README.md
1# has-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 10Does this environment have the ability to set the [[Prototype]] of an object on creation with `__proto__`? 11 12## Example 13 14```js 15var hasProto = require('has-proto'); 16var assert = require('assert'); 17 18assert.equal(typeof hasProto(), 'boolean'); 19``` 20 21## Tests 22Simply clone the repo, `npm install`, and run `npm test` 23 24[package-url]: https://npmjs.org/package/has-proto 25[npm-version-svg]: https://versionbadg.es/inspect-js/has-proto.svg 26[deps-svg]: https://david-dm.org/inspect-js/has-proto.svg 27[deps-url]: https://david-dm.org/inspect-js/has-proto 28[dev-deps-svg]: https://david-dm.org/inspect-js/has-proto/dev-status.svg 29[dev-deps-url]: https://david-dm.org/inspect-js/has-proto#info=devDependencies 30[npm-badge-png]: https://nodei.co/npm/has-proto.png?downloads=true&stars=true 31[license-image]: https://img.shields.io/npm/l/has-proto.svg 32[license-url]: LICENSE 33[downloads-image]: https://img.shields.io/npm/dm/has-proto.svg 34[downloads-url]: https://npm-stat.com/charts.html?package=has-proto 35[codecov-image]: https://codecov.io/gh/inspect-js/has-proto/branch/main/graphs/badge.svg 36[codecov-url]: https://app.codecov.io/gh/inspect-js/has-proto/ 37[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/has-proto 38[actions-url]: https://github.com/inspect-js/has-proto/actions 39