{"_id":"@brandonaaron/astro-script-embed","_rev":"2-f5f6f227d023bef92b907d7c2574691a","name":"@brandonaaron/astro-script-embed","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.1":{"name":"@brandonaaron/astro-script-embed","version":"1.0.1","description":"Embed (or inline) a script to your HTML in astro components.","author":{"name":"Brandon Aaron"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/brandonaaron/astro-script-embed.git"},"exports":"./dist/index.js","main":"dist/index.js","module":"dist/index.js","types":"dist/index.d.ts","type":"module","scripts":{"lint":"eslint .","lint:fix":"eslint . --fix","lint:fix:staged":"npx lint-staged --verbose","build":"rollup-type-bundler -b rollup","rollup":"rollup -c","prepublishOnly":"npm run build","test":"tsx --test src/*.test.ts","prepare":"husky install"},"devDependencies":{"@eslint/js":"^8.55.0","@favware/rollup-type-bundler":"^3.2.1","@rollup/plugin-typescript":"^11.1.5","@stylistic/eslint-plugin":"^1.5.1","@types/node":"^20.10.6","@typescript-eslint/eslint-plugin":"^6.14.0","@typescript-eslint/parser":"^6.17.0","astro":"^4.0.8","eslint":"^8.56.0","husky":"^8.0.3","lint-staged":"^15.2.0","rollup":"^4.9.2","tslib":"^2.6.2","tsx":"^4.7.0","typescript":"^5.3.3"},"peerDependencies":{"astro":"^4.0.0"},"lint-staged":{"*.{ts,js}":"eslint . --fix"},"_id":"@brandonaaron/astro-script-embed@1.0.1","gitHead":"4cd04bc20f11d72e3a922d7c2d9afc08367145e8","bugs":{"url":"https://github.com/brandonaaron/astro-script-embed/issues"},"homepage":"https://github.com/brandonaaron/astro-script-embed#readme","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-+WhuevpfrWxszYvHQReRUnIR1UlDakZ45qDd950Sj2LkfXe38Wo4RoZ65rL2iRl7lWVK8mSfUpakEU0HNAVjRw==","shasum":"fb497a601b74a8ea0bff2e8ce89632691f237ebc","tarball":"https://registry.npmjs.org/@brandonaaron/astro-script-embed/-/astro-script-embed-1.0.1.tgz","fileCount":15,"unpackedSize":20394,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYj47/ggJs4AAj1ernjjwdiaEU5fxsZ5J/5X7AYPbzpQIhAIx8RcPMiuaZ0TbuvSXp9G67NPtyEXCWTeNOiMArmmNJ"}]},"_npmUser":{"name":"brandonaaron","email":"hello.brandon@aaron.sh"},"directories":{},"maintainers":[{"name":"brandonaaron","email":"hello.brandon@aaron.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/astro-script-embed_1.0.1_1704231199940_0.36943806629089826"},"_hasShrinkwrap":false},"1.0.2":{"name":"@brandonaaron/astro-script-embed","version":"1.0.2","description":"Embed (or inline) a script to your HTML in astro components.","author":{"name":"Brandon Aaron"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/brandonaaron/astro-script-embed.git"},"keywords":["astro-integration"],"exports":"./dist/index.js","main":"dist/index.js","module":"dist/index.js","types":"dist/index.d.ts","type":"module","scripts":{"lint":"eslint .","lint:fix":"eslint . --fix","lint:fix:staged":"npx lint-staged --verbose","build":"rollup-type-bundler -b rollup","rollup":"rollup -c","prepublishOnly":"npm run build","test":"tsx --test src/*.test.ts","prepare":"husky install"},"devDependencies":{"@eslint/js":"^8.55.0","@favware/rollup-type-bundler":"^3.2.1","@rollup/plugin-typescript":"^11.1.5","@stylistic/eslint-plugin":"^1.5.1","@types/node":"^20.10.6","@typescript-eslint/eslint-plugin":"^6.14.0","@typescript-eslint/parser":"^6.17.0","astro":"^4.0.8","eslint":"^8.56.0","husky":"^8.0.3","lint-staged":"^15.2.0","rollup":"^4.9.2","tslib":"^2.6.2","tsx":"^4.7.0","typescript":"^5.3.3"},"peerDependencies":{"astro":"^4.0.0"},"lint-staged":{"*.{ts,js}":"eslint . --fix"},"_id":"@brandonaaron/astro-script-embed@1.0.2","gitHead":"08e109cdfdc4af1644fc2fe9c21d379d8c0aaa62","bugs":{"url":"https://github.com/brandonaaron/astro-script-embed/issues"},"homepage":"https://github.com/brandonaaron/astro-script-embed#readme","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-igTNfIwd22KImBL22PbfHX4y9iZTQ4d3H1MM7aCTgpsqyNijSFfWBlVwxRMKZRdh46qYnPXEvSnUx4idsQJcMw==","shasum":"73c510d32c01b0663e0ac7025ccb9ba112718927","tarball":"https://registry.npmjs.org/@brandonaaron/astro-script-embed/-/astro-script-embed-1.0.2.tgz","fileCount":15,"unpackedSize":20514,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD754WOUfA7ZBYSGSNfTN0/bCEt7wIaI2Ljkqmn4m/vWgIgBHUEoAlDA2wtYN+1P8Eqh/YB/WUeUw5cLugZnBScw8c="}]},"_npmUser":{"name":"brandonaaron","email":"hello.brandon@aaron.sh"},"directories":{},"maintainers":[{"name":"brandonaaron","email":"hello.brandon@aaron.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/astro-script-embed_1.0.2_1704231481439_0.7487170133940626"},"_hasShrinkwrap":false},"1.0.3":{"name":"@brandonaaron/astro-script-embed","version":"1.0.3","description":"Embed (or inline) a script to your HTML in astro components.","author":{"name":"Brandon Aaron"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/brandonaaron/astro-script-embed.git"},"keywords":["astro-integration"],"exports":"./dist/index.js","main":"dist/index.js","module":"dist/index.js","types":"dist/index.d.ts","type":"module","scripts":{"lint":"eslint .","lint:fix":"eslint . --fix","lint:fix:staged":"npx lint-staged --verbose","build":"rollup-type-bundler -b rollup","rollup":"rollup -c","prepublishOnly":"npm run build","test":"tsx --test src/*.test.ts","prepare":"husky install"},"devDependencies":{"@eslint/js":"^8.55.0","@favware/rollup-type-bundler":"^3.2.1","@rollup/plugin-typescript":"^11.1.5","@stylistic/eslint-plugin":"^1.5.1","@types/node":"^20.10.6","@typescript-eslint/eslint-plugin":"^6.14.0","@typescript-eslint/parser":"^6.17.0","astro":"^4.0.8","eslint":"^8.56.0","husky":"^8.0.3","lint-staged":"^15.2.0","rollup":"^4.9.2","tslib":"^2.6.2","tsx":"^4.7.0","typescript":"^5.3.3"},"peerDependencies":{"astro":"^4.0.0"},"lint-staged":{"*.{ts,js}":"eslint . --fix"},"_id":"@brandonaaron/astro-script-embed@1.0.3","gitHead":"08e109cdfdc4af1644fc2fe9c21d379d8c0aaa62","bugs":{"url":"https://github.com/brandonaaron/astro-script-embed/issues"},"homepage":"https://github.com/brandonaaron/astro-script-embed#readme","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-iNsQb2MJh1V4iF2hxKhuYTDLwyF0UIVqd7gaoqmDFuUal6gg72QEAzEJbase7aI1h9WE7755yjwE/ECjvfJoCQ==","shasum":"78bb509335fddc5cdb85bdc6525578bd873a5a63","tarball":"https://registry.npmjs.org/@brandonaaron/astro-script-embed/-/astro-script-embed-1.0.3.tgz","fileCount":15,"unpackedSize":20768,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA7fpkEA36Ci1qT/yj9YwpUSeLuj0MRusJDoQV08YE/wAiBwcynOcInkaJMqzuNgdCpdDQQX7fKn7vO+iLXdiJEetA=="}]},"_npmUser":{"name":"brandonaaron","email":"hello.brandon@aaron.sh"},"directories":{},"maintainers":[{"name":"brandonaaron","email":"hello.brandon@aaron.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/astro-script-embed_1.0.3_1704231749072_0.3272167208741974"},"_hasShrinkwrap":false}},"time":{"created":"2024-01-02T21:33:19.823Z","1.0.1":"2024-01-02T21:33:20.137Z","modified":"2024-01-02T21:42:29.520Z","1.0.2":"2024-01-02T21:38:01.667Z","1.0.3":"2024-01-02T21:42:29.367Z"},"maintainers":[{"name":"brandonaaron","email":"hello.brandon@aaron.sh"}],"description":"Embed (or inline) a script to your HTML in astro components.","homepage":"https://github.com/brandonaaron/astro-script-embed#readme","repository":{"type":"git","url":"git+https://github.com/brandonaaron/astro-script-embed.git"},"author":{"name":"Brandon Aaron"},"bugs":{"url":"https://github.com/brandonaaron/astro-script-embed/issues"},"license":"ISC","readme":"# Astro Script Embed\n\nEmbed (or inline) a script into your HTML from an Astro component.\n\n⚠️ This is pretty narowly implemented and tested for my use case and might not work for yours.\n\n## Use Case\n\nI needed a small blocking script on every html page generated in my Astro build. I didn't want to use the network for this blocking js. So I made this astro integration that adds a small vite plugin to embed/inline a script.\n\n## Usage\n\nRun:\n\n```\nnpx astro add @brandonaaron/astro-script-embed\n```\n\nThen add `is:inline is:embeded` to any script tag. The source can be to a package or local file. For example I used it to inline the small blocking script from my [dark-pref](https://github.com/brandonaaron/dark-pref) project like so:\n\n```\n<script is:inline is:embeded src=\"@brandonaaron/dark-pref/dist/DarkPref.blocking.js\"></script>\n```\n\n### Manully installing\n\nFirst install it:\n\n```\nnpm install @brandonaaron/astro-embed-script\n```\n\nUpdate your Astro config to import and include the 'astroEmbedScript' integration:\n\n```\nimport { astroEmbedScript } from '@brandonaaron/astro-embed-script'\n\nexport default defineConfig({\n  //...\n  integrations: [astroEmbedScript()],\n  //...\n})\n```\n","readmeFilename":"README.md","keywords":["astro-integration"]}