{"_id":"@brunnerh/snowpack-plugin-delegate","_rev":"1-f5b8978a978c6238c9e21ab87a11e78f","name":"@brunnerh/snowpack-plugin-delegate","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@brunnerh/snowpack-plugin-delegate","description":"A plugin for defining plugins inline or locally.","authors":"brunnerh","license":"MIT","version":"1.0.0","main":"./src/main.js","homepage":"https://github.com/brunnerh/snowpack-plugin-delegate","bugs":{"url":"https://github.com/brunnerh/snowpack-plugin-delegate/issues"},"dependencies":{},"devDependencies":{"snowpack":"^3.0.11"},"_id":"@brunnerh/snowpack-plugin-delegate@1.0.0","_nodeVersion":"14.15.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-kRSqyxwe8ct59sAtXIRxBbsbbyj3m+1sOVamtnEAdZu9rYzxm2IufLCwOv9vVdRnc5VMYUhiVBp+f6cHDYvxzQ==","shasum":"ede00c10cd37e536fff407a5dac56b73ccea7338","tarball":"https://registry.npmjs.org/@brunnerh/snowpack-plugin-delegate/-/snowpack-plugin-delegate-1.0.0.tgz","fileCount":4,"unpackedSize":2538,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNARjCRA9TVsSAnZWagAAXvgQAIC1TfNlCQw9JW9Qxsk2\ns22lqNUPEFQ9a1tyIgH3E2LJuk4PyP1bfaIpkYy2mx1zkftmOE5V7p8+FKr2\nM7BviX/2+i/mZ+4f1RA4dIA4HlkgVj8wqhhNGFBHU/vB51PkkmB9gvmWdgJ1\n2Q5gFMrL+P6mPjU9vBKZZemtL5i7aeL04S3R52O5x/gR2x54XWJg7w815k8z\nCz+7LtyDd5uwAZoIv1OkPgHQxx+iRA9UmsfeaDhSA9JHbOrujBjCNF7KoKbf\nEiWURNW7gFlRqw3tlGqLWZ4hbBVU3L9dyQAlS6mTAzZxYRpeCOyMIQecowQk\njflztUk6h0tZmLTVzv5Q+zvUSnbi5UWortmzE4VdofWpeDzy1tkuU3sz2daJ\n79YTnVc1pLhJN4uaSTGBqgHZ0tKUqaRCGoisYOLpg+lY+eA4hwg5DFj/2w34\nw4VOPaM68IiK1FQrFWs5nMiiIQqKSJ8/QToAmFaqvuLEGqW5t5EjfDnBjbcu\nx+gE/8SqleEuGU4FjFtV7gfqkmdizUf0CJF/qkFmJjUSSNzrfE4WQgdRfeoK\nme+3rGdifrwBNTPBcdYaZtrrR9sI+p4FYbGW1Me4WrciRra3wlG2PTweOjti\ng6M/ym85O4EQ67N55C4ITcIZSFHDmjWHaxPFDLEAGlNf/+oJmCqJPcofd2NG\nA/Yh\r\n=vftV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxXnIeIc8kXBaYlfZ88166cnnR8nlUXoP8jPZ32UsTjAIhAO7iKCf1PSN+ED82802dD6WmHgG/qofG81SCxGF9rLuy"}]},"_npmUser":{"name":"brunnerh","email":"harald.demian.brunner@gmail.com"},"directories":{},"maintainers":[{"name":"brunnerh","email":"harald.demian.brunner@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/snowpack-plugin-delegate_1.0.0_1614021731039_0.9921587087474686"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-22T19:22:10.998Z","1.0.0":"2021-02-22T19:22:11.198Z","modified":"2022-04-04T20:49:17.495Z"},"maintainers":[{"name":"brunnerh","email":"harald.demian.brunner@gmail.com"}],"description":"A plugin for defining plugins inline or locally.","homepage":"https://github.com/brunnerh/snowpack-plugin-delegate","bugs":{"url":"https://github.com/brunnerh/snowpack-plugin-delegate/issues"},"license":"MIT","readme":"A [Snowpack](https://github.com/snowpackjs/snowpack/) plugin which delegates everything to the plugin options, allowing for simple inline plugin definitions.\r\n\r\nInstall via:\r\n\r\n    npm install @brunnerh/snowpack-plugin-delegate --save-dev\r\n\r\nExample usage:\r\n\r\n```js\r\n// Replace a constant everywhere\r\nconst constantsPlugin = {\r\n\ttransform: options => options.contents.replace(/PORT/g, 3000),\r\n};\r\n\r\nconst config = {\r\n\tplugins: [\r\n\t\t// ...\r\n\t\t[\"@brunnerh/snowpack-plugin-delegate\", constantsPlugin],\r\n\t],\r\n};\r\n\r\nmodule.exports = config;\r\n```","readmeFilename":"README.md"}