demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/_dependencies/npm/get-proto-1.0.1/README.md

Path
demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/_dependencies/npm/get-proto-1.0.1/README.md
Status
scanned
Type
file
Name
README.md
Extension
.md
Programming language

      
    
Mime type
text/plain
File type
ASCII text
Tag

      
    
Rootfs path

      
    
Size
1794 (1.8 KB)
MD5
a80c58c3c9b38d192aa94040d1ecb10f
SHA1
727d3c5851cabcfc1d397291a3ce1d6dbf0a1780
SHA256
5a3c611a2e47ccbe9b01df7ee9f6bce0a2035fd35acbff028e5ceef77a1331ee
SHA512

      
    
SHA1_git
f8b4cce347f6718bd564f2d5f9f31f93e17fe5d5
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
README.md | 1.8 KB |

# get-proto <sup>[![Version Badge][npm-version-svg]][package-url]</sup> [![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url] [![npm badge][npm-badge-png]][package-url] Robustly get the [[Prototype]] of an object. Uses the best available method. ## Getting started ```sh npm install --save get-proto ``` ## Usage/Examples ```js const assert = require('assert'); const getProto = require('get-proto'); const a = { a: 1, b: 2, [Symbol.toStringTag]: 'foo' }; const b = { c: 3, __proto__: a }; assert.equal(getProto(b), a); assert.equal(getProto(a), Object.prototype); assert.equal(getProto({ __proto__: null }), null); ``` ## Tests Clone the repo, `npm install`, and run `npm test` [package-url]: https://npmjs.org/package/get-proto [npm-version-svg]: https://versionbadg.es/ljharb/get-proto.svg [deps-svg]: https://david-dm.org/ljharb/get-proto.svg [deps-url]: https://david-dm.org/ljharb/get-proto [dev-deps-svg]: https://david-dm.org/ljharb/get-proto/dev-status.svg [dev-deps-url]: https://david-dm.org/ljharb/get-proto#info=devDependencies [npm-badge-png]: https://nodei.co/npm/get-proto.png?downloads=true&stars=true [license-image]: https://img.shields.io/npm/l/get-proto.svg [license-url]: LICENSE [downloads-image]: https://img.shields.io/npm/dm/get-proto.svg [downloads-url]: https://npm-stat.com/charts.html?package=get-proto [codecov-image]: https://codecov.io/gh/ljharb/get-proto/branch/main/graphs/badge.svg [codecov-url]: https://app.codecov.io/gh/ljharb/get-proto/ [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/get-proto [actions-url]: https://github.com/ljharb/get-proto/actions
URL Start line End line
https://npmjs.org/package/get-proto 36 36
https://versionbadg.es/ljharb/get-proto.svg 37 37
https://david-dm.org/ljharb/get-proto.svg 38 38
https://david-dm.org/ljharb/get-proto 39 39
https://david-dm.org/ljharb/get-proto/dev-status.svg 40 40
https://david-dm.org/ljharb/get-proto#info=devDependencies 41 41
https://nodei.co/npm/get-proto.png?downloads=true&stars=true 42 42
https://img.shields.io/npm/l/get-proto.svg 43 43
https://img.shields.io/npm/dm/get-proto.svg 45 45
https://npm-stat.com/charts.html?package=get-proto 46 46
https://codecov.io/gh/ljharb/get-proto/branch/main/graphs/badge.svg 47 47
https://app.codecov.io/gh/ljharb/get-proto/ 48 48
https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/get-proto 49 49
https://github.com/ljharb/get-proto/actions 50 50
Package URL License Primary language
pkg:npm/acme-demo-app@1.0.0 JavaScript
pkg:npm/get-proto@1.0.1 mit JavaScript