{"id":21877321,"url":"https://github.com/kalimahapps/vue-options-to-composition","last_synced_at":"2025-07-21T06:32:09.251Z","repository":{"id":168602853,"uuid":"644358101","full_name":"kalimahapps/vue-options-to-composition","owner":"kalimahapps","description":"Online tool to convert vue2 options to vue3 composition API","archived":true,"fork":false,"pushed_at":"2024-09-30T14:59:17.000Z","size":291,"stargazers_count":16,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-14T13:20:01.432Z","etag":null,"topics":["composition-api","options-api","vue","vue3"],"latest_commit_sha":null,"homepage":"https://kalimah-apps.com/vue-options-to-composition/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kalimahapps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-23T10:57:53.000Z","updated_at":"2025-04-09T10:25:19.000Z","dependencies_parsed_at":"2024-05-07T16:55:04.015Z","dependency_job_id":"a7ea6f19-8246-4b1d-826f-90bd6242a3c3","html_url":"https://github.com/kalimahapps/vue-options-to-composition","commit_stats":null,"previous_names":["kalimahapps/vue-options-to-composition"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kalimahapps/vue-options-to-composition","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalimahapps%2Fvue-options-to-composition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalimahapps%2Fvue-options-to-composition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalimahapps%2Fvue-options-to-composition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalimahapps%2Fvue-options-to-composition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kalimahapps","download_url":"https://codeload.github.com/kalimahapps/vue-options-to-composition/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalimahapps%2Fvue-options-to-composition/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266253614,"owners_count":23900053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composition-api","options-api","vue","vue3"],"created_at":"2024-11-28T08:08:54.154Z","updated_at":"2025-07-21T06:32:04.232Z","avatar_url":"https://github.com/kalimahapps.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# This repo is archived. The project has been moved to [Kalimah Tools](https://github.com/kalimahapps/tools)\n\n# Vue Options to Composition API Converter\n\n## Introduction\nThis is an online tool to convert Vue 2 options API code to Vue 3 composition API code.\n\n## Example\nInput Vue 2 options API code:\n```js\nexport default {\n\tdata:{\n      items: [],\n      list: {},\n    },\n  props: ['loading', 'lazy', 'disabled'],\n  methods:{\n  \tisLazy(){\n      return this.lazy;\n    },\n    isLoading: function(){\n      return this.loading;\n    },\n    isDisabled: () =\u003e {\n      return this.disabled;\n    }\n  },\n  watch:{\n    loading(newValue){\n      console.log(\"Value\", newValue);\n    },\n    disabled:{\n      immediate: true,\n    handler(value) {\n      this.bar = value;\n    }\n    }\n\n  }\n}\n```\n\nOutput Vue 3 composition API code:\n```js\nimport { reactive, watch } from 'vue';\n\n\n// Data\nconst items = reactive([]);\nconst list = reactive({});\n\n// Props\nconst props = defineProps(['loading', 'lazy', 'disabled']);\n\n// Methods\nconst isLazy = function(){\n\treturn props.lazy;\n}\n\nconst isLoading = function(){\n\treturn props.loading;\n}\n\nconst isDisabled = () =\u003e {\n\treturn props.disabled;\n}\n\n\n// Watch\nwatch(loading, function(newValue){\n\tconsole.log(\"Value\", newValue);\n})\n\nwatch(disabled, function (value) {\n\tthis.bar = value;\n}, { immediate: true })\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalimahapps%2Fvue-options-to-composition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkalimahapps%2Fvue-options-to-composition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalimahapps%2Fvue-options-to-composition/lists"}