{"library":"connect-injector","type":"library","category":null,"description":"A middleware to inject content into any HTTP response, compatible with Connect and Express. Version 0.4.4 is the latest stable release (last updated in 2014). It allows conditional injection based on request/response headers and can modify response buffers on the fly. Key differentiator: intercept and transform responses before they are sent, unlike typical request-based middleware. Works with http-proxy for proxied content rewriting. Simple boolean condition function and a content converter function. No longer actively maintained; consider alternatives like express-transform or custom middleware.","language":"javascript","status":"maintenance","version":"0.4.4","tags":["javascript","connect","middleware","http"],"last_verified":"Wed May 27","install":[{"cmd":"npm install connect-injector","imports":["var injector = require('connect-injector');","var inject = injector(function(req, res) { return true; }, function(data, req, res, callback) { callback(null, data); });","var injector = require('connect-injector');"]},{"cmd":"yarn add connect-injector","imports":[]},{"cmd":"pnpm add connect-injector","imports":[]}],"homepage":null,"github":"https://github.com/daffl/connect-injector","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/connect-injector","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/connect-injector/compatibility"}}