Skip to content
PluginStats

inject-body-webpack-plugin weekly downloads statistics

By jaid (4 listings) · npm · Webpack plugins

Webpack plugin that injects a custom string into the body of the html-webpack-plugin output.

View on npm Stale · Oct 18, 2026

inject-body-webpack-plugin has 932 recorded weekly downloads on npm, a decrease of 35.2% over the past 30 days, ranking #1488 of 2,391 tracked listings.

Weekly downloads
932
Official API · Oct 18, 2026
7-day growth
-42.7%
-695 weekly downloads
30-day growth
-35.2%
-506 weekly downloads
90-day growth
-65.4%
-1.8K weekly downloads
Rank
#1488
Among tracked npm listings

About inject-body-webpack-plugin

inject-body-webpack-plugin

<a href="https://raw.githubusercontent.com/jaid/inject-body-webpack-plugin/master/license.txt"><img src="https://img.shields.io/github/license/jaid/inject-body-webpack-plugin?style=flat-square" alt="License"/></a> <a href="https://github.com/sponsors/jaid"><img src="https://img.shields.io/badge/<3-Sponsor-FF45F1?style=flat-square" alt="Sponsor inject-body-webpack-plugin"/></a>
<a href="https://actions-badge.atrox.dev/jaid/inject-body-webpack-plugin/goto"><img src="https://img.shields.io/endpoint.svg?style=flat-square&url=https%3A%2F%2Factions-badge.atrox.dev%2Fjaid%2Finject-body-webpack-plugin%2Fbadge" alt="Build status"/></a> <a href="https://github.com/jaid/inject-body-webpack-plugin/commits"><img src="https://img.shields.io/github/commits-since/jaid/inject-body-webpack-plugin/v1.3.0?style=flat-square&logo=github" alt="Commits since v1.3.0"/></a> <a href="https://github.com/jaid/inject-body-webpack-plugin/commits"><img src="https://img.shields.io/github/last-commit/jaid/inject-body-webpack-plugin?style=flat-square&logo=github" alt="Last commit"/></a> <a href="https://github.com/jaid/inject-body-webpack-plugin/issues"><img src="https://img.shields.io/github/issues/jaid/inject-body-webpack-plugin?style=flat-square&logo=github" alt="Issues"/></a>
<a href="https://npmjs.com/package/inject-body-webpack-plugin"><img src="https://img.shields.io/npm/v/inject-body-webpack-plugin?style=flat-square&logo=npm&label=latest%20version" alt="Latest version on npm"/></a> <a href="https://github.com/jaid/inject-body-webpack-plugin/network/dependents"><img src="https://img.shields.io/librariesio/dependents/npm/inject-body-webpack-plugin?style=flat-square&logo=npm" alt="Dependents"/></a> <a href="https://npmjs.com/package/inject-body-webpack-plugin"><img src="https://img.shields.io/npm/dm/inject-body-webpack-plugin?style=flat-square&logo=npm" alt="Downloads"/></a>

Webpack plugin that injects a custom string into the body of the html-webpack-plugin output.

Installation

<a href="https://npmjs.com/package/inject-body-webpack-plugin"><img src="https://img.shields.io/badge/npm-inject--body--webpack--plugin-C23039?style=flat-square&logo=npm" alt="inject-body-webpack-plugin on npm"/></a>

npm install --save-dev inject-body-webpack-plugin@^1.3.0

<a href="https://yarnpkg.com/package/inject-body-webpack-plugin"><img src="https://img.shields.io/badge/Yarn-inject--body--webpack--plugin-2F8CB7?style=flat-square&logo=yarn&logoColor=white" alt="inject-body-webpack-plugin on Yarn"/></a>

yarn add --dev inject-body-webpack-plugin@^1.3.0

Example

Input

webpack.config.babel.js

import HtmlWebpackPlugin from "html-webpack-plugin"
import InjectBodyPlugin from "inject-body-webpack-plugin"

export default {
  plugins: [
    new HtmlWebpackPlugin({
      templateContent: "<html><body></body></html>"
    }),
    new InjectBodyPlugin({
      content: '<main id=root>Hi!</main>'
    }),
  ],
}
Output

index.html

<html><body><main id=root>Hi!</main></body></html>

Options

<table> <tr> <th></th> <th>Type</th> <th>Default</th> <th>Info</th> </tr> <tr> <td>content</td> <td>string</td> <td>&lt;div id=root/></td> <td>The text that will be inject into the final HTML output.</td> </tr> <tr> <td>position</td> <td>string</td> <td>start</td> <td>If “start”, the content will be injected as close to the body opening tag as possible. If “end”, the content will be injected as close to the body ending tag as possible.</td> </tr> </table>

Development

<details> <summary><b>Development hints for maintaining and improving inject-body-webpack-plugin</b></summary>

Setting up:

git clone git@github.com:jaid/inject-body-webpack-plugin.git
cd inject-body-webpack-plugin
npm install

Testing in production environment:

npm run test
</details>

License

MIT License
Copyright © 2021, Jaid <jaid.jsx@gmail.com> (https://github.com/jaid)

<!--- Readme generated with tldw v7.1.0 https://github.com/Jaid/tldw -->

Description from the npm listing.

  • add-on
  • addon
  • html
  • html-webpack-plugin
  • html-webpack-plugin-plugin
  • library
  • node
  • node-js
  • plugin
  • webpack
  • webpack-plugin

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

inject-body-webpack-plugin weekly downloads on npm, last 90 days: 932 weekly downloads as of Oct 18, 2026, -65.4% over 90 days.inject-body-webpack-pluginWeekly downloads on npm · Last 90 days932downloads / week-65.4% over 90 days05001K1.5K2K2.5K3KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 23, 2026 – Oct 18, 2026 · 88 observations · Updated Oc…pluginstats.com
inject-body-webpack-plugin weekly downloads on npm, last 90 days: 932 weekly downloads as of Oct 18, 2026, -65.4% over 90 days.

7/30/90-day growth

inject-body-webpack-plugin weekly downloads growth on npm: -42.7% over 7 days, -35.2% over 30 days, -65.4% over 90 days.inject-body-webpack-pluginWeekly downloads growth on npm932downloads / week now7-day growth-695 weekly downloads-42.7%30-day growth-506 weekly downloads-35.2%90-day growth-1,765 weekly downloads-65.4%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
inject-body-webpack-plugin weekly downloads growth on npm: -42.7% over 7 days, -35.2% over 30 days, -65.4% over 90 days.

Ranking history

inject-body-webpack-plugin npm ranking history: currently #1488 (by weekly downloads).inject-body-webpack-pluginnpm ranking · by weekly downloads · Last 90 days#1488current rank#400#600#800#1000#1200#1400#1600Jul 23Aug 7Aug 22Sep 6Sep 21Oct 6Oct 21rankOct 17, 2026 – Oct 21, 2026 · 5 observations · Updated Oct 18, 2026pluginstats.com
inject-body-webpack-plugin npm ranking history: currently #1488 (by weekly downloads).

Listing placement

All npm2,389 listings · 120 pages · 1,195 shown · page 76, #7 (overall #1,507)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins257 listings · 13 pages · page 3, #16 (overall #56)
Webpack plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (544)
Recent weekly downloads observations for inject-body-webpack-plugin
Date (UTC)Weekly downloadsChange vs. previous
932-117
1,049-105
1,154+99
1,055-340
1,395-330
1,7250
1,725+98
1,627+175
1,452+18
1,434-28
1,462+25
1,437-71
1,508-382
1,890—

Similar npm Webpack plugins plugins

All 20 inject-body-webpack-plugin alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/inject-body-webpack-plugin. First seen Oct 16, 2026; last successful collection Oct 21, 2026. See the methodology.