{"_id":"@2nofa11/vue-script-setup-converter","_rev":"5-41f9d8fa25d89024dc395800a3c0a56d","name":"@2nofa11/vue-script-setup-converter","dist-tags":{"latest":"0.0.33"},"versions":{"0.0.32":{"name":"@2nofa11/vue-script-setup-converter","version":"0.0.32","keywords":["vue","script-setup","converter","typescript","composition-api","vue3","nuxt"],"author":{"name":"2nofa11","email":"agsh0505@gmail.com"},"license":"MIT","_id":"@2nofa11/vue-script-setup-converter@0.0.32","maintainers":[{"name":"2nofa11","email":"agsh0505@gmail.com"}],"homepage":"https://github.com/2nofa11/vue-script-setup-converter","bugs":{"url":"https://github.com/2nofa11/vue-script-setup-converter/issues"},"bin":{"vue-script-setup-converter":"dist/cli.mjs"},"dist":{"shasum":"d91c928cd661691005a78837e74b09baa5a5a04e","tarball":"https://registry.npmjs.org/@2nofa11/vue-script-setup-converter/-/vue-script-setup-converter-0.0.32.tgz","fileCount":15,"integrity":"sha512-NoPGRu81OQtbwrodoxNca7i2osRnk9yS4Um7ZLpvKB4+U5p04lhHPzHe6dQ66qdVo5DvcWqr5IbE7S4lIrWidg==","signatures":[{"sig":"MEUCIC9RnwRes/Zj142PPwe5XH8nMxspr25b8Nr7JdxCqxcSAiEAmYj1Q1jrEPunyl7O4qeLO69OGxUVsJ1krS8xxShx2Os=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":68942},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"21314deeb0372b1f14e80a05784e732f0ad7f9e3","scripts":{"test":"vitest run","prepack":"unbuild","release":"changelogen --release && npm publish","changelog":"changelogen --release","test:watch":"vitest","build:watch":"unbuild --stub","test:update":"vitest --update"},"_npmUser":{"name":"2nofa11","email":"agsh0505@gmail.com"},"repository":{"url":"git+https://github.com/2nofa11/vue-script-setup-converter.git","type":"git"},"_npmVersion":"10.8.2","description":"A powerful tool that transforms Vue Composition API code into modern script setup syntax with advanced features like props destructuring, automatic reference replacement, and comprehensive TypeScript support.","directories":{},"_nodeVersion":"18.20.8","dependencies":{"consola":"^3.4.2","knitwork":"^1.1.0","@vue/compiler-sfc":"3.2.40"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.3","unbuild":"^3.5.0","prettier":"^2.7.1","typescript":"^5.7.2","changelogen":"^0.6.1","@types/prettier":"^2.7.1"},"peerDependencies":{"ts-morph":">=17.0.1","typescript":">=4.9.4"},"_npmOperationalInternal":{"tmp":"tmp/vue-script-setup-converter_0.0.32_1750081621258_0.9233907407296307","host":"s3://npm-registry-packages-npm-production"}},"0.0.33":{"name":"@2nofa11/vue-script-setup-converter","version":"0.0.33","description":"A powerful tool that transforms Vue Composition API code into modern script setup syntax with advanced features like props destructuring, automatic reference replacement, and comprehensive TypeScript support.","type":"module","main":"./dist/index.cjs","module":"./dist/index.mjs","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs"}},"bin":{"vue-script-setup-converter":"dist/cli.mjs"},"types":"./dist/index.d.ts","scripts":{"prepack":"unbuild","build:watch":"unbuild --stub","test":"vitest run","test:watch":"vitest","test:update":"vitest --update","changelog":"changelogen --release","release":"changelogen --release && npm publish"},"peerDependencies":{"ts-morph":">=17.0.1","typescript":">=4.9.4"},"devDependencies":{"@types/prettier":"^2.7.1","changelogen":"^0.6.1","prettier":"^2.7.1","typescript":"^5.7.2","unbuild":"^3.5.0","vitest":"^3.2.3"},"dependencies":{"@vue/compiler-sfc":"3.2.40","consola":"^3.4.2","knitwork":"^1.1.0"},"keywords":["vue","script-setup","converter","typescript","composition-api","vue3","nuxt"],"author":{"name":"2nofa11","email":"agsh0505@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/2nofa11/vue-script-setup-converter.git"},"homepage":"https://github.com/2nofa11/vue-script-setup-converter","bugs":{"url":"https://github.com/2nofa11/vue-script-setup-converter/issues"},"publishConfig":{"access":"public"},"_id":"@2nofa11/vue-script-setup-converter@0.0.33","gitHead":"fda1fa55d369a5c595cc5708f87d044361442b69","_nodeVersion":"18.20.8","_npmVersion":"10.8.2","dist":{"integrity":"sha512-xkvxty2C9yH6dj6fZMgkFsO8p1INKh9tLo6vQ+yU2Ov/38YLOUBpiFKK2zlKZGts/XVZkGZNYLgMNkX0GldXKw==","shasum":"c188361f1e492eeacb1f5a69a8ea2ff0e1485bc7","tarball":"https://registry.npmjs.org/@2nofa11/vue-script-setup-converter/-/vue-script-setup-converter-0.0.33.tgz","fileCount":15,"unpackedSize":68942,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCcqTjB8lNEMgd1VxPhO/BAA1gKFjRIdRTKT4hN8t5ItAIgZhodH87QvUxwaqES8OaxNJz+/xBTt8cvbhAGaSM1EGE="}]},"_npmUser":{"name":"2nofa11","email":"agsh0505@gmail.com"},"directories":{},"maintainers":[{"name":"2nofa11","email":"agsh0505@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vue-script-setup-converter_0.0.33_1750082110665_0.43717865674978174"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-16T13:47:01.155Z","modified":"2025-06-16T13:55:11.039Z","0.0.3":"2025-06-16T13:21:38.387Z","0.0.32":"2025-06-16T13:47:01.453Z","0.0.33":"2025-06-16T13:55:10.852Z"},"bugs":{"url":"https://github.com/2nofa11/vue-script-setup-converter/issues"},"author":{"name":"2nofa11","email":"agsh0505@gmail.com"},"license":"MIT","homepage":"https://github.com/2nofa11/vue-script-setup-converter","keywords":["vue","script-setup","converter","typescript","composition-api","vue3","nuxt"],"repository":{"type":"git","url":"git+https://github.com/2nofa11/vue-script-setup-converter.git"},"description":"A powerful tool that transforms Vue Composition API code into modern script setup syntax with advanced features like props destructuring, automatic reference replacement, and comprehensive TypeScript support.","maintainers":[{"name":"2nofa11","email":"agsh0505@gmail.com"}],"readme":"# Vue Script Setup Converter\n\n> ⚠️ **Experimental**: This is an experimental project. Use with caution.\n\nConverts Vue Composition API code to `<script setup>` syntax with TypeScript support.\n\n**Built upon the excellent work of [wattanx/wattanx-converter](https://github.com/wattanx/wattanx-converter). Thank you for the foundation!**\n\n## Installation\n\n```bash\nnpm install -D vue-script-setup-converter\n```\n\n## Usage\n\n```bash\nnpx vue-script-setup-converter <file-path>\n```\n\n## Example\n\n**Input:**\n```vue\n<script lang=\"ts\">\nimport { computed, defineComponent } from \"vue\";\n\nexport default defineComponent({\n  props: {\n    count: { type: Number, required: true },\n    message: { type: String, default: \"Hello\" }\n  },\n  setup(props) {\n    const doubled = computed(() => props.count * 2);\n    return { doubled };\n  }\n});\n</script>\n```\n\n**Output:**\n```vue\n<script setup lang=\"ts\">\nimport { computed } from \"vue\";\n\ntype Props = {\n  count: number;\n  message?: string;\n};\nconst { count, message = \"Hello\" } = defineProps<Props>();\n\nconst doubled = computed(() => count * 2);\n</script>\n```\n\n## License\n\nMIT","readmeFilename":"README.md"}