{"_id":"install-webpack-plugin","_rev":"6-0125067e33b0ea9b45b6074e5f29355c","time":{"created":"2024-01-22T17:26:23.824Z","4.0.5":"2021-08-24T08:46:11.960Z","modified":"2024-01-22T17:51:43.176Z","1.0.0":"2024-01-22T17:26:23.990Z","4.0.0":"2024-01-22T17:46:50.483Z","4.0.4":"2024-01-22T17:48:15.932Z","4.0.6":"2024-01-22T17:51:42.992Z"},"name":"install-webpack-plugin","dist-tags":{"latest":"4.0.6"},"versions":{"1.0.0":{"name":"install-webpack-plugin","version":"1.0.0","description":"Webpack plugin to automatically install & save dependencies.","main":"index.js","engines":{"node":">=12.13.0"},"scripts":{"changelog":"npm run changelog:generate && npm run changelog:add","changelog:add":"git add CHANGELOG.md","changelog:generate":"github_changelog_generator --future-release $npm_package_version","coverage":"jest --coverage","postversion":"npm run version:amend && git push origin master --tags && npm publish","security":"npm audit","fmt:check":"prettier \"{**/*,*}.{js,json,md,yml,css,ts}\" --list-different","lint:js":"eslint --cache .","lint":"npm-run-all lint:js fmt:check","fmt":"npm run fmt:check -- --write","fix:js":"npm run lint:js -- --fix","fix":"npm-run-all fix:js fmt","pretest":"npm run lint","test":"cross-env NODE_ENV=test jest","test:watch":"cross-env NODE_ENV=test jest --watch","version":"npm run changelog","version:amend":"git commit --amend -m \"Release v${npm_package_version}\"","prepare":"husky install"},"repository":{"type":"git","url":"git+https://github.com/webpack-contrib/install-webpack-plugin.git"},"keywords":["webpack","webpack-plugin","npm","install"],"author":{"name":"Eric Clemmons","email":"eric@smarterspam.com"},"license":"MIT","bugs":{"url":"https://github.com/webpack-contrib/install-webpack-plugin/issues"},"homepage":"https://github.com/webpack-contrib/install-webpack-plugin#readme","dependencies":{"colorette":"^1.2.2","cross-spawn":"^7.0.3","json5":"^2.2.0","memfs":"^3.2.2","resolve":"^1.20.0","schema-utils":"^3.1.0"},"devDependencies":{"@commitlint/cli":"^12.1.1","@commitlint/config-conventional":"^12.1.4","@webpack-contrib/eslint-config-webpack":"^3.0.0","codecov":"^3.7.1","cross-env":"^7.0.3","eslint":"^7.26.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.23.2","husky":"^6.0.0","jest":"^27.0.4","lint-staged":"^11.0.0","npm-run-all":"^4.1.5","prettier":"^2.3.0","webpack":"^5.36.2"},"peerDependencies":{"webpack":"^5.0.0"},"_id":"install-webpack-plugin@1.0.0","gitHead":"6c46b427810d3d1aad39e8fc0eb76cad21dac2e9","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-/mhgT2Yf76vQkhz+PMuyp/c8UV/S8RB1SKBQNM2EgyEzAkvdO59KOYX4eQjMgAqzOCsbHUKp4ZiV9uJdGBezmQ==","shasum":"f221a3f6bd5efd907e603c80c3255411a3e13022","tarball":"https://registry.npmjs.org/install-webpack-plugin/-/install-webpack-plugin-1.0.0.tgz","fileCount":8,"unpackedSize":26455,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFM7SPVrGiG6TbZJe5MtYPOrEbMuHshUDZo8QQ8eoYiRAiEAi92s8Tu+TLY4BzJbV+6DTBWK+S1Sd3g0I6vSwwheVsw="}]},"_npmUser":{"name":"mahammad8564","email":"mahammadkc@gmail.com"},"directories":{},"maintainers":[{"name":"mahammad8564","email":"mahammadkc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/install-webpack-plugin_1.0.0_1705944383825_0.08831263692646285"},"_hasShrinkwrap":false},"4.0.0":{"name":"install-webpack-plugin","version":"4.0.0","description":"Webpack plugin to automatically install & save dependencies.","main":"index.js","engines":{"node":">=12.13.0"},"scripts":{"changelog":"npm run changelog:generate && npm run changelog:add","changelog:add":"git add CHANGELOG.md","changelog:generate":"github_changelog_generator --future-release $npm_package_version","coverage":"jest --coverage","postversion":"npm run version:amend && git push origin master --tags && npm publish","security":"npm audit","fmt:check":"prettier \"{**/*,*}.{js,json,md,yml,css,ts}\" --list-different","lint:js":"eslint --cache .","lint":"npm-run-all lint:js fmt:check","fmt":"npm run fmt:check -- --write","fix:js":"npm run lint:js -- --fix","fix":"npm-run-all fix:js fmt","pretest":"npm run lint","test":"cross-env NODE_ENV=test jest","test:watch":"cross-env NODE_ENV=test jest --watch","version":"npm run changelog","version:amend":"git commit --amend -m \"Release v${npm_package_version}\"","prepare":"husky install"},"repository":{"type":"git","url":"git+https://github.com/webpack-contrib/install-webpack-plugin.git"},"keywords":["webpack","webpack-plugin","npm","install"],"author":{"name":"Eric Clemmons","email":"eric@smarterspam.com"},"license":"MIT","bugs":{"url":"https://github.com/webpack-contrib/install-webpack-plugin/issues"},"homepage":"https://github.com/webpack-contrib/install-webpack-plugin#readme","dependencies":{"colorette":"^1.2.2","cross-spawn":"^7.0.3","json5":"^2.2.0","memfs":"^3.2.2","resolve":"^1.20.0","schema-utils":"^3.1.0"},"devDependencies":{"@commitlint/cli":"^12.1.1","@commitlint/config-conventional":"^12.1.4","@webpack-contrib/eslint-config-webpack":"^3.0.0","codecov":"^3.7.1","cross-env":"^7.0.3","eslint":"^7.26.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.23.2","husky":"^6.0.0","jest":"^27.0.4","lint-staged":"^11.0.0","npm-run-all":"^4.1.5","prettier":"^2.3.0","webpack":"^5.36.2"},"peerDependencies":{"webpack":"^5.0.0"},"_id":"install-webpack-plugin@4.0.0","gitHead":"6c46b427810d3d1aad39e8fc0eb76cad21dac2e9","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-1WcBMvCnvEjdVaJEjqK8g9NhBjf9AAClPmau9U9Tic9YmZZUphzqhGJnQlGnd/kwts1kfygxD+e5MmEyHcZHTQ==","shasum":"12edf9827528b735a4e8e572a4a67074174cc8ab","tarball":"https://registry.npmjs.org/install-webpack-plugin/-/install-webpack-plugin-4.0.0.tgz","fileCount":8,"unpackedSize":26455,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1WT8zZQhDr2k0z4dToayvgA0wxMe0+eyZit2NRoc0wQIhAPzutcRpib15tqZkwnll6W2JJyDrncVC+jcRC0wnaFIJ"}]},"_npmUser":{"name":"mahammad8564","email":"mahammadkc@gmail.com"},"directories":{},"maintainers":[{"name":"mahammad8564","email":"mahammadkc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/install-webpack-plugin_4.0.0_1705945610342_0.12633997947108977"},"_hasShrinkwrap":false},"4.0.4":{"name":"install-webpack-plugin","version":"4.0.4","description":"Webpack plugin to automatically install & save dependencies.","main":"index.js","engines":{"node":">=12.13.0"},"scripts":{"changelog":"npm run changelog:generate && npm run changelog:add","changelog:add":"git add CHANGELOG.md","changelog:generate":"github_changelog_generator --future-release $npm_package_version","coverage":"jest --coverage","postversion":"npm run version:amend && git push origin master --tags && npm publish","security":"npm audit","fmt:check":"prettier \"{**/*,*}.{js,json,md,yml,css,ts}\" --list-different","lint:js":"eslint --cache .","lint":"npm-run-all lint:js fmt:check","fmt":"npm run fmt:check -- --write","fix:js":"npm run lint:js -- --fix","fix":"npm-run-all fix:js fmt","pretest":"npm run lint","test":"cross-env NODE_ENV=test jest","test:watch":"cross-env NODE_ENV=test jest --watch","version":"npm run changelog","version:amend":"git commit --amend -m \"Release v${npm_package_version}\"","prepare":"husky install"},"repository":{"type":"git","url":"git+https://github.com/webpack-contrib/install-webpack-plugin.git"},"keywords":["webpack","webpack-plugin","npm","install"],"author":{"name":"Eric Clemmons","email":"eric@smarterspam.com"},"license":"MIT","bugs":{"url":"https://github.com/webpack-contrib/install-webpack-plugin/issues"},"homepage":"https://github.com/webpack-contrib/install-webpack-plugin#readme","dependencies":{"colorette":"^1.2.2","cross-spawn":"^7.0.3","json5":"^2.2.0","memfs":"^3.2.2","resolve":"^1.20.0","schema-utils":"^3.1.0"},"devDependencies":{"@commitlint/cli":"^12.1.1","@commitlint/config-conventional":"^12.1.4","@webpack-contrib/eslint-config-webpack":"^3.0.0","codecov":"^3.7.1","cross-env":"^7.0.3","eslint":"^7.26.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.23.2","husky":"^6.0.0","jest":"^27.0.4","lint-staged":"^11.0.0","npm-run-all":"^4.1.5","prettier":"^2.3.0","webpack":"^5.36.2"},"peerDependencies":{"webpack":"^5.0.0"},"_id":"install-webpack-plugin@4.0.4","gitHead":"6c46b427810d3d1aad39e8fc0eb76cad21dac2e9","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-U6KuCwQNjsTeBtBQsiGCYCVjLXfAO9DIxFL9OLNuKi3KNYTxrkL7JTGFuen3498FmDVR7J8n6t5Eikpv5SVrzQ==","shasum":"73c35b35201a861c698021ab9e1eab89a9ebafad","tarball":"https://registry.npmjs.org/install-webpack-plugin/-/install-webpack-plugin-4.0.4.tgz","fileCount":8,"unpackedSize":26455,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIECMJ/pwxGHOHAgSUl+CFcOqMaWrvzdM2/IapkOfhLLnAiEA1kmYRKG/exP9zbKplvzJDOhNnGkNVz01Dwt344uF+e8="}]},"_npmUser":{"name":"mahammad8564","email":"mahammadkc@gmail.com"},"directories":{},"maintainers":[{"name":"mahammad8564","email":"mahammadkc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/install-webpack-plugin_4.0.4_1705945695742_0.029934730318486702"},"_hasShrinkwrap":false},"4.0.6":{"name":"install-webpack-plugin","version":"4.0.6","description":"Webpack plugin to automatically install & save dependencies.","main":"index.js","engines":{"node":">=12.13.0"},"scripts":{"changelog":"npm run changelog:generate && npm run changelog:add","changelog:add":"git add CHANGELOG.md","changelog:generate":"github_changelog_generator --future-release $npm_package_version","coverage":"jest --coverage","postversion":"npm run version:amend && git push origin master --tags && npm publish","security":"npm audit","fmt:check":"prettier \"{**/*,*}.{js,json,md,yml,css,ts}\" --list-different","lint:js":"eslint --cache .","lint":"npm-run-all lint:js fmt:check","fmt":"npm run fmt:check -- --write","fix:js":"npm run lint:js -- --fix","fix":"npm-run-all fix:js fmt","pretest":"npm run lint","test":"cross-env NODE_ENV=test jest","test:watch":"cross-env NODE_ENV=test jest --watch","version":"npm run changelog","version:amend":"git commit --amend -m \"Release v${npm_package_version}\"","prepare":"husky install"},"repository":{"type":"git","url":"git+https://github.com/webpack-contrib/install-webpack-plugin.git"},"keywords":["webpack","webpack-plugin","npm","install"],"author":{"name":"Eric Clemmons","email":"eric@smarterspam.com"},"license":"MIT","bugs":{"url":"https://github.com/webpack-contrib/install-webpack-plugin/issues"},"homepage":"https://github.com/webpack-contrib/install-webpack-plugin#readme","dependencies":{"colorette":"^1.2.2","cross-spawn":"^7.0.3","json5":"^2.2.0","memfs":"^3.2.2","resolve":"^1.20.0","schema-utils":"^3.1.0"},"devDependencies":{"@commitlint/cli":"^12.1.1","@commitlint/config-conventional":"^12.1.4","@webpack-contrib/eslint-config-webpack":"^3.0.0","codecov":"^3.7.1","cross-env":"^7.0.3","eslint":"^7.26.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.23.2","husky":"^6.0.0","jest":"^27.0.4","lint-staged":"^11.0.0","npm-run-all":"^4.1.5","prettier":"^2.3.0","webpack":"^5.36.2"},"peerDependencies":{"webpack":"^5.0.0"},"_id":"install-webpack-plugin@4.0.6","gitHead":"6c46b427810d3d1aad39e8fc0eb76cad21dac2e9","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-YHyQYX3iOw+vFqZhlVx6P8gupxfw9335ytzpbr8mV8ldEn1tJK88D1jbJuvEVdy0xWap1o6nfElJuCC4Eu5GLw==","shasum":"0a6871f1b26af6216ffc664af9f64ed1f78cb9dd","tarball":"https://registry.npmjs.org/install-webpack-plugin/-/install-webpack-plugin-4.0.6.tgz","fileCount":8,"unpackedSize":26455,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIARe73K5Q0vWThkmoLeqDr9nIXMSzGoplDGgLmdccPFFAiBoJ7FK9dtO2Oo/iSuxPB2r5QhoORzP790jDoV/9bc7dA=="}]},"_npmUser":{"name":"mahammad8564","email":"mahammadkc@gmail.com"},"directories":{},"maintainers":[{"name":"mahammad8564","email":"mahammadkc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/install-webpack-plugin_4.0.6_1705945902782_0.5836231868561894"},"_hasShrinkwrap":false}},"maintainers":[{"name":"mahammad8564","email":"mahammadkc@gmail.com"}],"description":"Webpack plugin to automatically install & save dependencies.","homepage":"https://github.com/webpack-contrib/install-webpack-plugin#readme","keywords":["webpack","webpack-plugin","npm","install"],"repository":{"type":"git","url":"git+https://github.com/webpack-contrib/install-webpack-plugin.git"},"author":{"name":"Eric Clemmons","email":"eric@smarterspam.com"},"bugs":{"url":"https://github.com/webpack-contrib/install-webpack-plugin/issues"},"license":"MIT","readme":"[![npm][npm]][npm-url]\n[![deps][deps]][deps-url]\n[![test][test]][test-url]\n[![coverage][cover]][cover-url]\n[![chat][chat]][chat-url]\n\n<div align=\"center\">\n  <!-- replace with accurate logo e.g from https://worldvectorlogo.com/ -->\n  <a href=\"https://github.com/webpack/webpack\">\n    <img width=\"200\" height=\"200\" vspace=\"\" hspace=\"25\"\n      src=\"https://cdn.rawgit.com/webpack/media/e7485eb2/logo/icon.svg\">\n  </a>\n  <h1>Install Webpack Plugin</h1>\n  <p>Speed up development by <b>automatically installing & saving dependencies</b> with Webpack.</p>\n</div>\n\nIt is inefficient to <kbd>Ctrl-C</kbd> your\nbuild script & server just to install\na dependency you didn't know you needed until now.\n\nInstead, use `require` or `import` how you normally would and installation\nwill happen **automatically to install & save missing dependencies** while you work!\n\n# Installation\n\n```bash\n$ npm install --save-dev install-webpack-plugin\n```\n\n# Usage\n\nIn your `webpack.config.js`:\n\n```js\nplugins: [\n  new InstallPlugin()\n],\n```\n\n**This is equivalent to**:\n\n```js\nplugins: [\n  new InstallPlugin({\n    dependencies: {\n      peer: true,\n    },\n    packageManager: {\n      type: this.getDefaultPackageManager(),\n      options: {\n        dev: false,\n        quiet: false,\n      },\n    },\n    prompt: true,\n  });\n],\n```\n\n# Options\n\n## dependencies\n\n**Type:** `Object`\n\nDependencies related options.\n\n### peer\n\n**Type:** `Boolean`\n\n**Default:** `true`\n\nInstall missing peer dependencies.\n\n```js\nplugins: [\n  new InstallPlugin({\n    dependencies: {\n      peer: true,\n    }\n  }),\n],\n```\n\n## packageManager\n\n**Type:** `'npm' | 'yarn' | 'pnpm' | Object | Function`\n\nPackage manager to use for installing dependencies.\n\n```js\nplugins: [\n  new InstallPlugin({\n      packageManager: 'yarn'\n    },\n  }),\n],\n```\n\nYou can provide a `Function` to the `packageManager` to make it dynamic:\n\n```js\nplugins: [\n  new InstallPlugin({\n    packageManager: function(module, path) {\n      return [\n        \"babel-preset-react-hmre\",\n        \"webpack-dev-middleware\",\n        \"webpack-hot-middleware\",\n      ].indexOf(module) !== -1;\n    },\n  }),\n],\n```\n\n### type\n\n**Type:** `'npm' | 'yarn' | 'pnpm'`\n\nName of package manager to use for installing dependencies.\n\n### options\n\n**Type:** `Object`\n\nPackage manager related options.\n\n### arguments\n\n**Type:** `Array`\n\nProvide custom arguments to use with package manager.\n\n```js\nplugins: [\n  new InstallPlugin({\n      packageManager: {\n        type: 'npm',\n        options: {\n          arguments: ['--ignore-scripts']\n        }\n      }\n    },\n  }),\n],\n```\n\n### dev\n\n**Type:** `Boolean`\n\n**Default:** `false`\n\nInstall as development dependencies.\n\n```js\nplugins: [\n  new InstallPlugin({\n      packageManager: {\n        type: 'npm',\n        options: {\n          dev: true,\n        }\n      }\n    },\n  }),\n],\n```\n\n### quiet\n\n**Type:** `Boolean`\n\n**Default:** `false`\n\nReduce the amount of console logging.\n\n```js\nplugins: [\n  new InstallPlugin({\n      packageManager: {\n        type: 'npm',\n        options: {\n          quiet: true,\n        }\n      }\n    },\n  }),\n],\n```\n\n## prompt\n\n**Type:** `Boolean`\n\n**Default:** `true`\n\nShow a prompt to confirm installation.\n\n```js\nplugins: [\n  new InstallPlugin({\n      prompt: true,\n    },\n  }),\n],\n```\n\n# Demo\n\n![install-webpack-plugin demo](https://cloud.githubusercontent.com/assets/15182/12540538/6a4e8f1a-c2d0-11e5-97ee-4ddaf6892645.gif)\n\n# Features\n\n- [x] Works with webpack `^v5.0.0`.\n- [x] Auto-installs `.babelrc` plugins & presets.\n- [x] Supports both ES5 & ES6 Modules.\n      (e.g. `require`, `import`)\n- [x] Supports Namespaced packages.\n      (e.g. `@cycle/dom`)\n- [x] Supports Dot-delimited packages.\n      (e.g. `lodash.capitalize`)\n- [x] Supports CSS imports.\n      (e.g. `@import \"~bootstrap\"`)\n- [x] Supports webpack loaders.\n      (e.g. `babel-loader`, `file-loader`, etc.)\n- [x] Supports inline webpack loaders.\n      (e.g. `require(\"bundle?lazy!./App\"`)\n- [x] Auto-installs missing `peerDependencies`.\n      (e.g. `@cycle/core` will automatically install `rx@*`)\n- [x] Supports webpack's `resolve.alias` & `resolve.root` configuration.\n      (e.g. `require(\"react\")` can alias to `react-lite`)\n\n## Contributing\n\nPlease take a moment to read our contributing guidelines if you haven't yet done so.\n\n[CONTRIBUTING](./.github/CONTRIBUTING.md)\n\n[npm]: https://img.shields.io/npm/v/install-webpack-plugin.svg\n[npm-url]: https://npmjs.com/package/install-webpack-plugin\n[deps]: https://david-dm.org/webpack-contrib/install-webpack-plugin.svg\n[deps-url]: https://david-dm.org/webpack-contrib/install-webpack-plugin\n[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg\n[chat-url]: https://gitter.im/webpack/webpack\n[test]: https://travis-ci.org/webpack-contrib/install-webpack-plugin.svg?branch=master\n[test-url]: https://travis-ci.org/webpack-contrib/install-webpack-plugin\n[cover]: https://codecov.io/gh/webpack-contrib/install-webpack-plugin/branch/master/graph/badge.svg\n[cover-url]: https://codecov.io/gh/webpack-contrib/install-webpack-plugin\n","readmeFilename":"README.md"}