{"_id":"npm-install-webpack-plugin-cn","_rev":"1047338","name":"npm-install-webpack-plugin-cn","description":"Webpack loader to automatically npm install & save dependencies.","dist-tags":{"latest":"2.0.4"},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}],"time":{"modified":"2024-09-18T07:19:31.000Z","created":"2016-03-04T02:59:05.686Z","2.0.4":"2016-03-04T06:49:52.483Z","2.0.3":"2016-03-04T06:35:51.433Z","2.0.2":"2016-03-04T02:59:05.686Z"},"users":{},"author":{"name":"Eric Clemmons","email":"eric@smarterspam.com"},"repository":{"type":"git","url":"git+https://github.com/ericclemmons/npm-install-webpack-plugin.git"},"versions":{"2.0.4":{"name":"npm-install-webpack-plugin-cn","version":"2.0.4","description":"Webpack loader to automatically npm install & save dependencies.","main":"index.js","files":["src"],"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":"npm test && nyc report --reporter=text-lcov | coveralls","postversion":"npm run version:amend && git push origin master --tags && npm publish","test":"NODE_ENV=test nyc mocha","version":"npm run changelog","version:amend":"git commit --amend -m \"Release v${npm_package_version}\""},"repository":{"type":"git","url":"git+https://github.com/ericclemmons/npm-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/ericclemmons/npm-install-webpack-plugin/issues"},"homepage":"https://github.com/ericclemmons/npm-install-webpack-plugin#readme","dependencies":{"cross-spawn":"^2.1.4","lodash.kebabcase":"^3.1.0","which":"^1.2.4"},"devDependencies":{"coveralls":"^2.11.6","expect":"^1.13.4","mocha":"^2.3.4","nyc":"^5.3.0"},"gitHead":"dac1a15a5e7a561ace43d1463d18cfeacc3549c5","_id":"npm-install-webpack-plugin-cn@2.0.4","_shasum":"0e4f8aad7fb7711ddcc36ba6e55d9f5dadd94728","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.2.0","_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"dist":{"shasum":"0e4f8aad7fb7711ddcc36ba6e55d9f5dadd94728","tarball":"http://registry-npm.ywwl.com/npm-install-webpack-plugin-cn/download/npm-install-webpack-plugin-cn-2.0.4.tgz","integrity":"sha512-m5uxScMNog0xPFeCI8LKrzlkrqfy85VNRy5cU5NHP6FBTfHisKEYGlS9U53BYDfN3pxa+Gg+3FrJguVvjviFyA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBqZaXGQOfm/zjNyH91Fe+JgtmOZ2ovAh9ioIWrTiPHUAiA1EMpxh4dukP5YZqvsomPFxIq04sAigKHjRlQbJ6+hRQ=="}],"size":4710,"noattachment":false,"key":"/npm-install-webpack-plugin-cn/-/npm-install-webpack-plugin-cn-2.0.4.tgz"},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/npm-install-webpack-plugin-cn-2.0.4.tgz_1457074189228_0.8832734110765159"},"directories":{},"publish_time":1457074192483,"_cnpm_publish_time":1457074192483},"2.0.3":{"name":"npm-install-webpack-plugin-cn","version":"2.0.3","description":"Webpack loader to automatically npm install & save dependencies.","main":"index.js","files":["src"],"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":"npm test && nyc report --reporter=text-lcov | coveralls","postversion":"npm run version:amend && git push origin master --tags && npm publish","test":"NODE_ENV=test nyc mocha","version":"npm run changelog","version:amend":"git commit --amend -m \"Release v${npm_package_version}\""},"repository":{"type":"git","url":"git+https://github.com/ericclemmons/npm-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/ericclemmons/npm-install-webpack-plugin/issues"},"homepage":"https://github.com/ericclemmons/npm-install-webpack-plugin#readme","dependencies":{"cross-spawn":"^2.1.4","lodash.kebabcase":"^3.1.0","which":"^1.2.4"},"devDependencies":{"coveralls":"^2.11.6","expect":"^1.13.4","mocha":"^2.3.4","nyc":"^5.3.0"},"gitHead":"f3bf5c35102e95c9006481c0f86300e9467e9a3c","_id":"npm-install-webpack-plugin-cn@2.0.3","_shasum":"3630c197b9d039cdb2f78e9dd2715ba34a20e638","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.2.0","_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"dist":{"shasum":"3630c197b9d039cdb2f78e9dd2715ba34a20e638","tarball":"http://registry-npm.ywwl.com/npm-install-webpack-plugin-cn/download/npm-install-webpack-plugin-cn-2.0.3.tgz","integrity":"sha512-98CPT/8OZ1igNfzdY8UxBDhV26N2FKc5qBsn1R+ADn/CAVj7gNK5927HUBY2VGUX9KghvU5wL6OVBtFhz2Y7xg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCu7UuefSrCIaHqgEOlJQoHqEk6M7bA21OTpdkpaiRvWAIgDoRBCk8zHZ3tBTGEMPG6ZR55gqTrNUMkhd2WZUHFYw0="}],"size":4718,"noattachment":false,"key":"/npm-install-webpack-plugin-cn/-/npm-install-webpack-plugin-cn-2.0.3.tgz"},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/npm-install-webpack-plugin-cn-2.0.3.tgz_1457073346263_0.8688706031534821"},"directories":{},"publish_time":1457073351433,"_cnpm_publish_time":1457073351433},"2.0.2":{"name":"npm-install-webpack-plugin-cn","version":"2.0.2","description":"Webpack loader to automatically npm install & save dependencies.","main":"index.js","files":["src"],"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":"npm test && nyc report --reporter=text-lcov | coveralls","postversion":"npm run version:amend && git push origin master --tags && npm publish","test":"NODE_ENV=test nyc mocha","version":"npm run changelog","version:amend":"git commit --amend -m \"Release v${npm_package_version}\""},"repository":{"type":"git","url":"git+https://github.com/ericclemmons/npm-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/ericclemmons/npm-install-webpack-plugin/issues"},"homepage":"https://github.com/ericclemmons/npm-install-webpack-plugin#readme","dependencies":{"cross-spawn":"^2.1.4","lodash.kebabcase":"^3.1.0","which":"^1.2.4"},"devDependencies":{"coveralls":"^2.11.6","expect":"^1.13.4","mocha":"^2.3.4","nyc":"^5.3.0"},"gitHead":"3e9ce6f782298c6d1cd808226958ecaa25beaa3b","_id":"npm-install-webpack-plugin-cn@2.0.2","_shasum":"4994e8a4e3659185e4246d78a961f623c5016a11","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.2.0","_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"dist":{"shasum":"4994e8a4e3659185e4246d78a961f623c5016a11","tarball":"http://registry-npm.ywwl.com/npm-install-webpack-plugin-cn/download/npm-install-webpack-plugin-cn-2.0.2.tgz","integrity":"sha512-QlKFSg2paK9OhBTfqDpFIklbL5+YRYQ7xmKEmQAyY50wfLEpmQKif2ugRFNFY1LBTCyIempBWom1elUd0yEzvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCE6pZu0vGhzKmMLlymb87rlchCr4ywF8Xe7eWjWFQSpAIgOi/7ZVqn11pA8NMWzIxZIQrZY/EpnCPLx1KutHNJOeA="}],"size":4680,"noattachment":false,"key":"/npm-install-webpack-plugin-cn/-/npm-install-webpack-plugin-cn-2.0.2.tgz"},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/npm-install-webpack-plugin-cn-2.0.2.tgz_1457060342526_0.6055699693970382"},"directories":{},"publish_time":1457060345686,"_cnpm_publish_time":1457060345686}},"readme":"# npm-install-webpack-plugin\n\n> Speed up development by **automatically installing & saving dependencies** with Webpack.\n>\n> [![npm-install-webpack-plugin mp4](https://cloud.githubusercontent.com/assets/15182/12540538/6a4e8f1a-c2d0-11e5-97ee-4ddaf6892645.gif)](https://dl.dropboxusercontent.com/u/55764/npm-install-webpack-plugin.mp4)\n\nSeamlessly works with:\n- [x] Javascript\n  (e.g. `require`, `import`)\n- [x] CSS\n  (e.g. `@import \"~bootstrap\"`)\n- [x] Webpack loaders\n  (e.g. `babel-loader`, `file-loader`, etc.)\n\n[![travis build](https://img.shields.io/travis/ericclemmons/npm-install-webpack-plugin.svg)](https://travis-ci.org/ericclemmons/npm-install-webpack-plugin)\n[![Coverage Status](https://coveralls.io/repos/ericclemmons/npm-install-webpack-plugin/badge.svg?branch=master&service=github)](https://coveralls.io/github/ericclemmons/npm-install-webpack-plugin?branch=master)\n[![version](https://img.shields.io/npm/v/npm-install-webpack-plugin.svg)](http://npm.im/npm-install-webpack-plugin)\n[![downloads](https://img.shields.io/npm/dm/npm-install-webpack-plugin.svg)](http://npm-stat.com/charts.html?package=npm-install-webpack-plugin)\n[![MIT License](https://img.shields.io/npm/l/npm-install-webpack-plugin.svg)](http://opensource.org/licenses/MIT)\n\n- - -\n\n### Why?\n\nIt sucks 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 `npm install`\nwill happen **automatically install & save missing dependencies** while you work!\n\n### Installation\n\n```shell\n$ npm install --save-dev npm-install-webpack-plugin\n```\n\n### Usage\n\nIn your `webpack.config.js`:\n\n```js\nplugins: [\n  new NpmInstallPlugin(),\n],\n```\n\n**If you have an `.npmrc` file in your project,\nthose arguments will be used:**\n\n```\nsave=true\nsave-exact=true\n```\n\nAlternatively, you can provide your own arguments to `npm install`:\n\n```js\nplugins: [\n  new NpmInstallPlugin({\n    ...\n    cacheMin: 999999  // --cache-min=999999 (prefer NPM cached version)\n    registry: \"...\"   // --registry=\"...\"\n    save: true,       // --save\n    saveDev: true,    // --save-dev\n    saveExact: true,  // --save-exact\n    ...\n  }),\n],\n```\n\n### License\n\n> MIT License 2016 © Eric Clemmons\n","_attachments":{},"homepage":"https://github.com/ericclemmons/npm-install-webpack-plugin#readme","bugs":{"url":"https://github.com/ericclemmons/npm-install-webpack-plugin/issues"},"license":"MIT"}