{"_id":"@gitbutler/svelte-comment-injector","_rev":"2-1eff8049e24456a8b3c84ff620fbfb13","name":"@gitbutler/svelte-comment-injector","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@gitbutler/svelte-comment-injector","version":"1.0.0","keywords":["svelte","preprocessor","comment","devtools","debug","svelte-preprocess"],"author":{"name":"Pavel Laptev"},"license":"MIT","_id":"@gitbutler/svelte-comment-injector@1.0.0","maintainers":[{"name":"calebowensperson","email":"hello@calebowens.com"},{"name":"mtsgrd","email":"mtsgrd@gmail.com"},{"name":"estib","email":"stron@me.com"},{"name":"pavellaptev","email":"pawellaptew@gmail.com"}],"homepage":"https://github.com/gitbutlerapp/gitbutler/tree/master/packages/svelte-comment-injector","bugs":{"url":"https://github.com/gitbutlerapp/gitbutler/issues"},"dist":{"shasum":"be557e1191336685fc593970e7fcf68f1e9520e1","tarball":"https://registry.npmjs.org/@gitbutler/svelte-comment-injector/-/svelte-comment-injector-1.0.0.tgz","fileCount":6,"integrity":"sha512-etgizFaoKMF4eyPC0ZmSVE27YvfFDKbk3voiqkX1+SnSD8gfUCxz9DKqcRBvdLZae4gpwAfSQAKg6oNEiyjxXQ==","signatures":[{"sig":"MEQCIGje9FRDmBKBRz/+4PNOw+QlBh/DC0ynHSgJIAwhHDGhAiB24CnWu6j2Ilzp7pSGopN6QdLwqjA8VFElTqbLbTSrzQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4127},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":"./dist/index.js"},"gitHead":"108c02b64f8791281d0d0f1317b55a90db6829cb","scripts":{"build":"tsc","prepare":"pnpm build"},"_npmUser":{"name":"pavellaptev","email":"pawellaptew@gmail.com"},"repository":{"url":"git+https://github.com/gitbutlerapp/gitbutler.git","type":"git"},"_npmVersion":"10.9.0","description":"A Svelte preprocessor that injects HTML comments for identifying components in browser DevTools.","directories":{},"_nodeVersion":"22.11.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/svelte-comment-injector_1.0.0_1748611521740_0.0028056147072159643","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@gitbutler/svelte-comment-injector","version":"1.0.1","description":"A Svelte preprocessor that injects HTML comments for identifying components in browser DevTools.","type":"module","exports":{".":"./dist/index.js"},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","prepare":"pnpm build"},"keywords":["svelte","preprocessor","comment","devtools","debug","svelte-preprocess"],"author":{"name":"Pavel Laptev"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gitbutlerapp/gitbutler.git"},"homepage":"https://github.com/gitbutlerapp/gitbutler/tree/master/packages/svelte-comment-injector","_id":"@gitbutler/svelte-comment-injector@1.0.1","gitHead":"5191d4206a3ac4d681a4898018c779be844e8a4e","bugs":{"url":"https://github.com/gitbutlerapp/gitbutler/issues"},"_nodeVersion":"22.13.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-x4vQslWxRHfjLAeeKZnD3snVuNcirqPTKlvTqQBiHiSBU5lSfSyTuS4fg7o3E4AzTem0wnXRYOVCL0G7Yqm+Fw==","shasum":"b50328fb49c9c0f70925e346229a3162b52b88ba","tarball":"https://registry.npmjs.org/@gitbutler/svelte-comment-injector/-/svelte-comment-injector-1.0.1.tgz","fileCount":6,"unpackedSize":4166,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHcTTODk9euNdLrINT7n0q5Ymhp9Oqdz774EOChsBhcyAiB4wZqeholCV4bo3stB25rAyUWQUXaNcCd5AED+gLxQBw=="}]},"_npmUser":{"name":"pavellaptev","email":"pawellaptew@gmail.com"},"directories":{},"maintainers":[{"name":"calebowensperson","email":"hello@calebowens.com"},{"name":"mtsgrd","email":"mtsgrd@gmail.com"},{"name":"estib","email":"stron@me.com"},{"name":"pavellaptev","email":"pawellaptew@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/svelte-comment-injector_1.0.1_1773357021703_0.5432921298326161"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-30T13:25:21.625Z","modified":"2026-03-12T23:10:21.978Z","1.0.0":"2025-05-30T13:25:21.959Z","1.0.1":"2026-03-12T23:10:21.841Z"},"bugs":{"url":"https://github.com/gitbutlerapp/gitbutler/issues"},"author":{"name":"Pavel Laptev"},"license":"MIT","homepage":"https://github.com/gitbutlerapp/gitbutler/tree/master/packages/svelte-comment-injector","keywords":["svelte","preprocessor","comment","devtools","debug","svelte-preprocess"],"repository":{"type":"git","url":"git+https://github.com/gitbutlerapp/gitbutler.git"},"description":"A Svelte preprocessor that injects HTML comments for identifying components in browser DevTools.","maintainers":[{"name":"calebowensperson","email":"hello@calebowens.com"},{"name":"mtsgrd","email":"mtsgrd@gmail.com"},{"name":"estib","email":"stron@me.com"},{"name":"pavellaptev","email":"pawellaptew@gmail.com"}],"readme":"# svelte-comment-injector\n\nA Svelte preprocessor that injects an HTML comment at the top of every component, making it easier to identify components in browser DevTools.\n\n## ✨ Features\n\n- Injects a DevTools-visible HTML comment like:\n  ```html\n  <!-- Begin MyComponent.svelte -->\n  <div class=\"my-component\">\n  \t<!-- Component content -->\n  </div>\n  <!-- End MyComponent.svelte -->\n  ```\n\n## 📦 Installation\n\n```bash\nnpm install @gitbutler/svelte-comment-injector --save-dev\n```\n\n## ⚙️ Usage\n\nAdd the preprocessor to your Svelte configuration:\n\n```js\n// svelte.config.js\nimport svelteInjectComment from \"@gitbutler/svelte-comment-injector\";\n\nexport default {\n\tpreprocess: [svelteInjectComment()],\n\t// ...rest of your config\n};\n```\n\n## 🛠️ Configuration\n\nYou can customize the comment format by passing options to the preprocessor:\n\n```js\n// svelte.config.js\nimport svelteInjectComment from \"@gitbutler/svelte-comment-injector\";\n\nexport default {\n\tpreprocess: [\n\t\tsvelteInjectComment({\n\t\t\tenabled: true, // Enable or disable the comment injection\n\t\t\tshowEndComment: true, // Show the end comment\n\t\t\tshowFullPath: false, // Show the full path in the comment\n\t\t}),\n\t],\n\t// ...rest of your config\n};\n```\n","readmeFilename":"README.md"}