Skip to content
PluginStats

copy-pkg-json-webpack-plugin weekly downloads statistics

By pmsandhu · npm · Webpack plugins

A webpack plugin to copy package.json file with desired key props into build directory

View on npm Fresh · Oct 17, 2026

copy-pkg-json-webpack-plugin has 1,394 recorded weekly downloads on npm, a decrease of 34.3% over the past 30 days.

It ranks #1334 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by -35.0%.

PluginStats has 543 daily observations since Apr 23, 2025; the latest is from Oct 17, 2026.

Weekly downloads
1,394
Official API · Oct 17, 2026
7-day growth
-40.5%
-950 weekly downloads
30-day growth
-34.3%
-728 weekly downloads
90-day growth
-35.0%
-750 weekly downloads
Rank
#1334
Among tracked npm listings

About copy-pkg-json-webpack-plugin

CopyPackageJsonPlugin

This is a plugin to copy and edit your package.json file to your webpack distribution/production bundle. This is useful for updating the version number of your package and only including the necessary information in your package.json bundle that consumer of your application/package need.

Install

Usage

Options

Options are passed as arguments to the new CopyPkgJsonPlugin({ options }) constructor and must be an object containing either a new key with an object containing the key/value pairs you wish to populate your new package.json with, a remove key with an array containing properties you want to remove from your existing package.json as strings and/or a replace key with an object containing the key/value pairs you wish to replace from your original package.json with. You may optionally pass in the absolute path string to the *directory* containing your package.json file. The plugin defaults to process.cwd() path. See the NOTE section below for more information on specifying the package.json directory path.

New

The new key expects an object with the standard package.json fields that you wish to be made available in your final bundle's package.json

Remove

The remove key expects an array with property names from your original package.json file that you wish to not be included in the copied package.json

Replace

The replace key expects an object with property names from your original package.json file that you wish to replace with different properties

By default this will merge keys by one level deep. So using the example above if your original package.json also included other scripts such as build command that script will be included in the copied package.json

If you do not want the existing keys to be merged and want to overwrite them you must add the the key to the remove option first

Note

This plugin assumes that your package.json is in the root directory of the node processes current working directory ie. process.cwd(). If your package.json is located elsewhere, you may optionally pass the absolute path of the directory where your package.json resides, as a second argument to new CopyPkgJsonPlugin constructor. NOTE: that you must pass in a first argument in order to pass in the context; if you wish to simply copy your existing package.json you can pass in an empty object :

If you wish to create a brand new package.json to be copied to the final dist bundle folder, pass an object with the key new which contains the key value pairs that you would like to be in your package.json: If you wish to simply copy your existing package.json your to the final dist bundle folder without any modifications and your package.json is located in the node processes current working directory ie process.cwd(), simply call the constructor without arguments and your package.json is located at the root :

If you which to remove an item from your existing package.json but not replace any just pass in this key:

And vice-versa if you wish to replace in an existing package.json but not remove any items:

Description from the npm listing.

  • webpack
  • webpack-plugin
  • package.json
  • production
  • copy
  • copy package.json

Where copy-pkg-json-webpack-plugin sits in the listing

Each band is one page of 20. Weekly downloads on a log 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.

All npm2,248 listings · 113 pages · page 67, #15 (overall #1335)
All npm: every listing in weekly downloads order
PNG SVG
Webpack plugins247 listings · 13 pages · page 3, #7 (overall #47)
Webpack plugins: every listing in weekly downloads order
PNG SVG

Charts

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

Adoption over time

copy-pkg-json-webpack-plugin weekly downloads on npm, last 90 days: 1,394 weekly downloads as of Oct 17, 2026, -35.0% over 90 days.copy-pkg-json-webpack-pluginWeekly downloads on npm · Last 90 days1,394downloads / week-35.0% over 90 days05001K1.5K2K2.5K3KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
copy-pkg-json-webpack-plugin weekly downloads on npm, last 90 days: 1,394 weekly downloads as of Oct 17, 2026, -35.0% over 90 days.
PNG SVG

7/30/90-day growth

copy-pkg-json-webpack-plugin weekly downloads growth on npm: -40.5% over 7 days, -34.3% over 30 days, -35.0% over 90 days.copy-pkg-json-webpack-pluginWeekly downloads growth on npm1,394downloads / week now7-day growth-950 weekly downloads-40.5%30-day growth-728 weekly downloads-34.3%90-day growth-750 weekly downloads-35.0%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
copy-pkg-json-webpack-plugin weekly downloads growth on npm: -40.5% over 7 days, -34.3% over 30 days, -35.0% over 90 days.
PNG SVG

Ranking history

copy-pkg-json-webpack-plugin npm ranking history: currently #1334 (by weekly downloads).copy-pkg-json-webpack-pluginnpm ranking · by weekly downloads · Last 90 days#1334current rank#400#600#800#1000#1200#1400Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 17, 2026 – Oct 18, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
copy-pkg-json-webpack-plugin npm ranking history: currently #1334 (by weekly downloads).
PNG SVG

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.

Recent observations

Full history (543)
Recent weekly downloads observations for copy-pkg-json-webpack-plugin
Date (UTC)Weekly downloadsChange vs. previous
1,394-97
1,491+1
1,490-623
2,113-407
2,5200
2,520+125
2,395+51
2,344-4
2,348+449
1,899-11
1,910-335
2,245-325
2,570+130
2,440—

Similar npm Webpack plugins plugins

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/copy-pkg-json-webpack-plugin. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.