inject-html
Node module for injecting HTML code before or after the body
tag into the response.
usage
Installable via npm: npm i inject-html
.
var inject = ; http;
Sample output:
before injecting:
inject html example inject-html example content
after injecting:
inject html example inject-html example content
caveats
If the content doesn't have a <body>
tag, this module will not function properly.
This module will delete the content-length
and content-encoding
(if gzip/inflate) headers.