{"_id":"@bvkimball/rollup-plugin-unpkg","_rev":"1-1f96a92d6a9f691e25863f47d933c4f6","name":"@bvkimball/rollup-plugin-unpkg","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@bvkimball/rollup-plugin-unpkg","version":"0.0.1","main":"index.js","keywords":["rollup-plugin"],"author":{"name":"osdevisnot","email":"osdevisnot@gmail.com"},"license":"MIT","dependencies":{"estree-walker":"^0.6.0","magic-string":"^0.25.2","read-pkg":"^5.0.0"},"gitHead":"d1a0969e76315367ecf11ed5b29962fdcc983cba","description":"A rollup plugin to convert ES imports to UNPKG urls.","_id":"@bvkimball/rollup-plugin-unpkg@0.0.1","_nodeVersion":"12.8.1","_npmVersion":"6.10.2","dist":{"integrity":"sha512-NtvZo2DkbwkuJBuoNx7MzAakTRGybDbhmyokfcMByqcUhwXdbJ0Srvrm9zemUm1iPMa39rz7RsJkH+vLaWaS1g==","shasum":"91e7e4d3c9dbd721c2cf7489c2818145b1f17d03","tarball":"https://registry.npmjs.org/@bvkimball/rollup-plugin-unpkg/-/rollup-plugin-unpkg-0.0.1.tgz","fileCount":3,"unpackedSize":2959,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdXbELCRA9TVsSAnZWagAA1DIP/Rdqr4pFTvIM1S1qsWkg\n3v5i5/4yRI2ZE6D1glmuirPMSBrAtSzIqLi3Q1xMMjTg2KyKHWDAegDCroOY\n3M3r6b5A4eO2dRdRKv/T1bopxLI9Ahgjv8bP2rPjDEqa9Pcj2JyGwqW0kN++\nGKEHQ8Hn5M5IqypkMHgMZTJNK3SWIi0qu8zq+ustXQhPemlmlxn/sKxw3KKj\nza/azXHK8N9kLRKrhPGtlPYLTBa/vokudQBo3+wGmitwHNkJcbe85dcZOGHV\nshCkIR0aUmoe1NPFYGI8Tct+JZ+HTtNLMMOK1BhtjlLuV1TCc94ec6JsbYJC\nMUC4hhDvJwijcNX6baviYsiMt3yoMEuX+8lt6MWXOmEZrjNIiQgDy30S/KQb\nQITkgYy6isQJqVVB009ulG/y6VIToTdbvtzMkNLG1tv/yTEuYY5LfApfj+sO\nBvXdjF6ewkW55CoK6EavDvwmbx5d5YLJXBjCWL/RoigsUQBC8z+QWhoql3GS\n/tVoVETx19M89CucTTmtIGh2u8uwTjZJpV+fZ8ymdGPGVm5qt7tIfzZW3bBY\n/0g+dYTvUYts2GIvNF/MkfTpwwrVI7jr3e8UlvU50sOj2SWt0RnF8Y7oPSgS\n3uGgxARXuuqdDYC1VMNpnvXAl737vKxqAqiUD2xInWMZFuLlb8LeF9OFD/nb\n7tu2\r\n=WQKP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZm3PFYGzrioGMVr1DhX2pduoXuhEMgozQ6U9AgbmA4gIgYBecMJmkbd4k0HkPhbaQWE4HaL9pCAqVxPx05hPgV54="}]},"maintainers":[{"name":"bvkimball","email":"bvkimball@gmail.com"}],"_npmUser":{"name":"bvkimball","email":"bvkimball@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-unpkg_0.0.1_1566421258474_0.3972891130909908"},"_hasShrinkwrap":false}},"time":{"created":"2019-08-21T21:00:58.275Z","0.0.1":"2019-08-21T21:00:58.633Z","modified":"2022-04-04T21:17:09.908Z"},"maintainers":[{"name":"bvkimball","email":"bvkimball@gmail.com"}],"description":"A rollup plugin to convert ES imports to UNPKG urls.","keywords":["rollup-plugin"],"author":{"name":"osdevisnot","email":"osdevisnot@gmail.com"},"license":"MIT","readme":"# rollup-plugin-unpkg\n\nA rollup plugin to convert ES imports to UNPKG urls.\n\n## Usage\n\nAdd this plugin to `rollup.config.js`:\n\n```js\nconst unpkg = require('rollup-plugin-unpkg');\n\nexport default {\n  input: 'src/main.js',\n  output: {\n    file: 'bundle.js',\n    format: 'cjs'\n  },\n  plugins: [unpkg()]\n};\n```\n\n## Example\n\n`package.json` dependencies:\n\n```json\n  \"dependencies\": {\n    \"@vanillajs/store\": \"^0.1.7\",\n    \"superfine\": \"^6.0.1\"\n  },\n```\n\nInput Code:\n\n```js\nimport { patch, h } from 'superfine';\nimport store from '@vanillajs/store';\n```\n\nOutput Code:\n\n```js\nimport { patch, h } from 'https://unpkg.com/superfine@6.0.1?type=module';\nimport store from 'https://unpkg.com/@vanillajs/store@0.1.7?type=module';\n```\n\n## Inspiration\n\nInspired from [this twitter conversation](https://twitter.com/Rich_Harris/status/933745598754447360) and a [follow up gist](https://gist.github.com/Rich-Harris/9ee5338527e7fa4ab251a02685729ee7)\n","readmeFilename":"README.md"}