{"library":"connect-inject","type":"library","category":null,"description":"A Connect/Express middleware for injecting arbitrary script tags or content into HTML responses by intercepting res.write and res.end. v0.4.0 is the latest stable release; package appears unmaintained since 2015 (no recent commits, no changelog). Forked from connect-livereload, it adds support for multiple injection rules and array snippets. Unlike alternatives (e.g., inject-lr-script), it does not require a live-reload server and allows full snippet customization. Works with any Connect-compatible framework (Connect, Express, Grunt connect). Only notable differentiator is the `runAll` option for applying multiple injection rules sequentially.","language":"javascript","status":"deprecated","version":"0.4.0","tags":["javascript","connect","inject"],"last_verified":"Wed May 27","install":[{"cmd":"npm install connect-inject","imports":["const inject = require('connect-inject');","const middleware = require('connect-inject')({ snippet: '...' });","app.use(require('connect-inject')());"]},{"cmd":"yarn add connect-inject","imports":[]},{"cmd":"pnpm add connect-inject","imports":[]}],"homepage":null,"github":"https://github.com/danielhq/connect-inject","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/connect-inject","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-inject/compatibility"}}