{"id":18337240,"url":"https://github.com/pillarjs/extend-proto","last_synced_at":"2025-04-06T04:36:16.119Z","repository":{"id":65996122,"uuid":"50738655","full_name":"pillarjs/extend-proto","owner":"pillarjs","description":"generic __proto__ injection utility","archived":false,"fork":false,"pushed_at":"2016-02-23T01:25:54.000Z","size":8,"stargazers_count":3,"open_issues_count":5,"forks_count":4,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-01-03T09:36:16.116Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pillarjs.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-30T18:34:07.000Z","updated_at":"2023-12-25T03:42:56.000Z","dependencies_parsed_at":"2023-05-06T19:50:46.308Z","dependency_job_id":null,"html_url":"https://github.com/pillarjs/extend-proto","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"405a758829149480e6b2e9ba5e57d929587a1d7f"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pillarjs%2Fextend-proto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pillarjs%2Fextend-proto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pillarjs%2Fextend-proto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pillarjs%2Fextend-proto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pillarjs","download_url":"https://codeload.github.com/pillarjs/extend-proto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247435038,"owners_count":20938530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T20:10:34.057Z","updated_at":"2025-04-06T04:36:10.893Z","avatar_url":"https://github.com/pillarjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# extend-proto\n\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n[![Node.js Version][node-version-image]][node-version-url]\n[![Build Status][travis-image]][travis-url]\n[![Test Coverage][coveralls-image]][coveralls-url]\n\nA utility to inject a prototype chain, fully generic and adaptable.\n\nThis largely exists for performance. Injecting a single prototype with many properties on it has been historically faster than adding those properties to an existing instance.\n\n```js\nvar http = require('http')\nvar proto = require('extend-proto')\n\nvar proto = Proto({\n    req: http.IncomingMessage,\n    res: http.ServerResponse\n})\nproto.req.defineProperty('kittens', { value: 'the best' })\n\nhttp.createServer(function(req, res) {\n  proto(req, res)\n\n  req.kittens // the best\n})\n\n```\n\n\n## [MIT Licensed](LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/extend-proto.svg?style=flat\n[npm-url]: https://npmjs.org/package/extend-proto\n[node-version-image]: https://img.shields.io/node/v/extend-proto.svg?style=flat\n[node-version-url]: http://nodejs.org/download/\n[travis-image]: https://img.shields.io/travis/pillarjs/extend-proto.svg?style=flat\n[travis-url]: https://travis-ci.org/pillarjs/extend-proto\n[coveralls-image]: https://img.shields.io/coveralls/pillarjs/extend-proto.svg?style=flat\n[coveralls-url]: https://coveralls.io/r/pillarjs/extend-proto?branch=master\n[downloads-image]: https://img.shields.io/npm/dm/extend-proto.svg?style=flat\n[downloads-url]: https://npmjs.org/package/extend-proto\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpillarjs%2Fextend-proto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpillarjs%2Fextend-proto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpillarjs%2Fextend-proto/lists"}