{"_id":"@contagt/inject-body-webpack-plugin","name":"@contagt/inject-body-webpack-plugin","dist-tags":{"latest":"1.4.9"},"versions":{"1.4.9":{"author":{"name":"Jaid","email":"jaid.jsx@gmail.com","url":"https://github.com/Jaid"},"bugs":{"url":"https://github.com/jaid/inject-body-webpack-plugin/issues"},"dependencies":{"debug":"^4.3.1","insert-string-after":"^1.0.0","insert-string-before":"^1.0.0"},"description":"Webpack plugin that injects a custom string into the body of the html-webpack-plugin output.","homepage":"https://github.com/Jaid/inject-body-webpack-plugin","keywords":["hacktoberfest"],"name":"@contagt/inject-body-webpack-plugin","peerDependencies":{"html-webpack-plugin":"^5.3.1"},"repository":{"type":"git","url":"git+https://github.com/jaid/inject-body-webpack-plugin.git"},"types":"index.d.ts","version":"1.4.9","gitHead":"77981a07d9e2e2c5dd1887b2a8f6bff83f353e06","_id":"@contagt/inject-body-webpack-plugin@1.4.9","_nodeVersion":"14.19.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-Mje8F5wZFcdfmyrgbfuOMo9iZJUjNcUyU/+6LSt+rtdQP3842mkTenoz8FYH8WGjP0O2gwzcMle6AyF2HWuiBg==","shasum":"dbbf90f20724fd782f99bba6a262b6abbc108b16","tarball":"https://registry.npmjs.org/@contagt/inject-body-webpack-plugin/-/inject-body-webpack-plugin-1.4.9.tgz","fileCount":6,"unpackedSize":13879,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbi9ewleTcc6MB0OOYptAu3iW4O/da5PEU5B6t8WcpZwIhAKm3+FWglogrHGDHZK9ZALPCYJFihIye/5Em5fZRrtYf"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMswLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmokVQ/+N9gzhBqRTCGJzObZ4IpXkVQD3dIwDJJX5/EFqVmKGRO311dF\r\nxKgYgo/xpBPgoGOs1RV01Lrr0mKpP9dNlEnRYnS6p96VsJTgfJXTr6GbUg98\r\nxBbL4cZRgYqAcHbNo6FQKlBUus0SIJoOZODTN4PvilaXvalbdrLACjZfjzVd\r\nubqrHtYkj1Q1Mh64Em7n3Ej3CXvqo/c2CavjAp11pLPsmWw3Q4s7XxHevBi2\r\n+yc5MAJBo9qgDoY+UeuvIhE57YQV2ysSDdlG4wHMGaDREHA1sXpDAvbznqrt\r\n9XpXDGBYyljOoIsnESNxE7gmnjMkMhTgUM9A0yBbv+6iHaTzjNhtqeGHQa6q\r\nJsn0Ea9S4vF8xe48vSihzsA3/jznzBhmZ7WiG+Ts7ztjuSUoJEgolW1A1Bjg\r\nRxue45ioIC0lvzVRg0rPraWd8AHusn2OFoKKNX+xqb+1mvUovpLwFlZApLcS\r\nS/+rF8hj+dst0tEGyvF1wNN6Ksq47aXEStFD/y1MvgYKyD4lBWpADt/aUBhc\r\n/tYAByfwrEuCpV/JWiHuTUx3Va3wV1jRZ0XxjVHXpyxCCczD0Pwm5UX42+7n\r\npFXm6BbqLvgbtbxEHY6nMKLnKlqJsU5GMzZzEyCvx9vtpXz0WeXfeXW5quNL\r\nxJhKuDoIMzPoWT3xAK4bAfGFNFBk/KOo3JA=\r\n=Cgnq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"sbrandt","email":"stephan@contagt.com"},"directories":{},"maintainers":[{"name":"sbrandt","email":"stephan@contagt.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inject-body-webpack-plugin_1.4.9_1664273419639_0.7406874779115677"},"_hasShrinkwrap":false}},"time":{"created":"2022-09-27T10:10:19.538Z","1.4.9":"2022-09-27T10:10:19.819Z","modified":"2022-09-27T10:10:19.992Z"},"maintainers":[{"name":"sbrandt","email":"stephan@contagt.com"}],"description":"Webpack plugin that injects a custom string into the body of the html-webpack-plugin output.","homepage":"https://github.com/Jaid/inject-body-webpack-plugin","keywords":["hacktoberfest"],"repository":{"type":"git","url":"git+https://github.com/jaid/inject-body-webpack-plugin.git"},"author":{"name":"Jaid","email":"jaid.jsx@gmail.com","url":"https://github.com/Jaid"},"bugs":{"url":"https://github.com/jaid/inject-body-webpack-plugin/issues"},"readme":"# inject-body-webpack-plugin\n\n\n<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>  \n<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>  \n<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>\n\n**Webpack plugin that injects a custom string into the body of the html-webpack-plugin output.**\n\n\n\n\n\n## Installation\n\n<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>\n\n```bash\nnpm install --save-dev inject-body-webpack-plugin@^1.3.0\n```\n\n<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>\n\n```bash\nyarn add --dev inject-body-webpack-plugin@^1.3.0\n```\n\n\n\n## Example\n\n#### Input\n\nwebpack.config.babel.js\n```js\nimport HtmlWebpackPlugin from \"html-webpack-plugin\"\nimport InjectBodyPlugin from \"inject-body-webpack-plugin\"\n\nexport default {\n  plugins: [\n    new HtmlWebpackPlugin({\n      templateContent: \"<html><body></body></html>\"\n    }),\n    new InjectBodyPlugin({\n      content: '<main id=root>Hi!</main>'\n    }),\n  ],\n}\n```\n\n#### Output\n\nindex.html\n```html\n<html><body><main id=root>Hi!</main></body></html>\n```\n\n\n\n\n\n\n\n## Options\n\n\n\n<table>\n<tr>\n<th></th>\n<th>Type</th>\n<th>Default</th>\n<th>Info</th>\n</tr>\n<tr>\n<td>content</td>\n<td>string</td>\n<td>&lt;div id=root/></td>\n<td>The text that will be injected into the final HTML output.</td>\n</tr>\n<tr>\n<td>position</td>\n<td>string</td>\n<td>start</td>\n<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>\n</tr>\n  </tr>\n<tr>\n<td>startTag</td>\n<td>string</td>\n<td><body></td>\n<td>Defines how the opening tag does look like that the content will be inserted after.</td>\n</tr>\n</tr>\n<tr>\n<td>endTag</td>\n<td>string</td>\n<td></body></td>\n<td>Defines how the closing tag does look like that the content will be inserted before.</td>\n</tr>\n</table>\n\n\n\n\n\n\n\n\n\n\n\n\n\n## Development\n\n<details>\n<summary><b>Development hints for maintaining and improving inject-body-webpack-plugin</b></summary>\n\n\n\nSetting up:\n```bash\ngit clone git@github.com:jaid/inject-body-webpack-plugin.git\ncd inject-body-webpack-plugin\nnpm install\n```\nTesting in production environment:\n```bash\nnpm run test\n```\n\n</details>\n\n## License\n[MIT License](https://raw.githubusercontent.com/jaid/inject-body-webpack-plugin/master/license.txt)  \nCopyright © 2021, Jaid \\<jaid.jsx@gmail.com> (https://github.com/jaid)\n\n<!---\nReadme generated with tldw v7.1.0\nhttps://github.com/Jaid/tldw\n-->\n","readmeFilename":"readme.md"}