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 Fresh · Dec 6, 2026

inject-body-webpack-plugin has 2,411 recorded weekly downloads on npm, an increase of 31.1% over the past 30 days, ranking #1825 of 3,247 tracked listings.

Weekly downloads
2,411
Official API · Dec 5, 2026
7-day growth
+18.2%
+372 weekly downloads
30-day growth
+31.1%
+572 weekly downloads
90-day growth
+227%
+1.7K weekly downloads
Rank
#1825
▼ 45 in 7 days

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: 2,411 weekly downloads as of Dec 5, 2026, +227% over 90 days.inject-body-webpack-pluginWeekly downloads on npm · Last 90 days2,411downloads / week+227% over 90 days01K2K3K4K5K6KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
inject-body-webpack-plugin weekly downloads on npm, last 90 days: 2,411 weekly downloads as of Dec 5, 2026, +227% over 90 days.

7/30/90-day growth

inject-body-webpack-plugin weekly downloads growth on npm: +18.2% over 7 days, +31.1% over 30 days, +227% over 90 days.inject-body-webpack-pluginWeekly downloads growth on npm2,411downloads / week now7-day growth+372 weekly downloads+18.2%30-day growth+572 weekly downloads+31.1%90-day growth+1,673 weekly downloads+227%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
inject-body-webpack-plugin weekly downloads growth on npm: +18.2% over 7 days, +31.1% over 30 days, +227% over 90 days.

Ranking history

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

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 92, #5 (overall #1,825)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins349 listings · 18 pages · page 3, #15 (overall #55)
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 (592)
Recent weekly downloads observations for inject-body-webpack-plugin
Date (UTC)Weekly downloadsChange vs. previous
2,411-43
2,454+57
2,397+245
2,152+165
1,987+306
1,681-174
1,855-184
2,039-135
2,174-222
2,396-1.8K
4,224-1.2K
5,451-177
5,628+248
5,380—

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 Dec 6, 2026. See the methodology.