# extend-proto **Repository Path**: mirrors_pillarjs/extend-proto ## Basic Information - **Project Name**: extend-proto - **Description**: generic __proto__ injection utility - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-07-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README > [!CAUTION] > **This repository is archived and no longer actively maintained.** > > We are no longer accepting issues, feature requests, or pull requests. > For additional support or questions, please visit the [Express.js Discussions page](https://github.com/expressjs/express/discussions). # extend-proto [![NPM Version][npm-image]][npm-url] [![NPM Downloads][downloads-image]][downloads-url] [![Node.js Version][node-version-image]][node-version-url] [![Build Status][travis-image]][travis-url] [![Test Coverage][coveralls-image]][coveralls-url] A utility to inject a prototype chain, fully generic and adaptable. This 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. ```js var http = require('http') var proto = require('extend-proto') var proto = Proto({ req: http.IncomingMessage, res: http.ServerResponse }) proto.req.defineProperty('kittens', { value: 'the best' }) http.createServer(function(req, res) { proto(req, res) req.kittens // the best }) ``` ## [MIT Licensed](LICENSE) [npm-image]: https://img.shields.io/npm/v/extend-proto.svg?style=flat [npm-url]: https://npmjs.org/package/extend-proto [node-version-image]: https://img.shields.io/node/v/extend-proto.svg?style=flat [node-version-url]: http://nodejs.org/download/ [travis-image]: https://img.shields.io/travis/pillarjs/extend-proto.svg?style=flat [travis-url]: https://travis-ci.org/pillarjs/extend-proto [coveralls-image]: https://img.shields.io/coveralls/pillarjs/extend-proto.svg?style=flat [coveralls-url]: https://coveralls.io/r/pillarjs/extend-proto?branch=master [downloads-image]: https://img.shields.io/npm/dm/extend-proto.svg?style=flat [downloads-url]: https://npmjs.org/package/extend-proto