{"id":15632791,"url":"https://github.com/hikerpig/vue-classify","last_synced_at":"2025-04-30T04:34:09.780Z","repository":{"id":34030453,"uuid":"165800938","full_name":"hikerpig/vue-classify","owner":"hikerpig","description":"Convert option-object style vue component to typescript class component","archived":false,"fork":false,"pushed_at":"2023-02-03T19:26:17.000Z","size":1469,"stargazers_count":12,"open_issues_count":26,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T22:00:07.999Z","etag":null,"topics":["babel","transformer","typescript","vue"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hikerpig.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-15T06:55:36.000Z","updated_at":"2022-07-26T08:35:43.000Z","dependencies_parsed_at":"2023-02-18T10:18:16.805Z","dependency_job_id":null,"html_url":"https://github.com/hikerpig/vue-classify","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hikerpig%2Fvue-classify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hikerpig%2Fvue-classify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hikerpig%2Fvue-classify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hikerpig%2Fvue-classify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hikerpig","download_url":"https://codeload.github.com/hikerpig/vue-classify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251643161,"owners_count":21620439,"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":["babel","transformer","typescript","vue"],"created_at":"2024-10-03T10:45:20.826Z","updated_at":"2025-04-30T04:34:09.748Z","avatar_url":"https://github.com/hikerpig.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-classify\n\n[![Build Status](https://travis-ci.org/hikerpig/vue-classify.svg?branch=master)](https://travis-ci.org/hikerpig/vue-classify)\n\n[![Coverage Status](https://coveralls.io/repos/github/hikerpig/vue-classify/badge.svg?branch=master)](https://coveralls.io/github/hikerpig/vue-classify?branch=master) [![Greenkeeper badge](https://badges.greenkeeper.io/hikerpig/vue-classify.svg)](https://greenkeeper.io/)\n\nConvert option-object style vue component to [vue-class-component](https://github.com/vuejs/vue-class-component) decorated class.\n\nInspired by [vue-to-react](https://github.com/dwqs/vue-to-react).\n\nHere is an [online demo](https://vue-classify-demo.surge.sh)\n\n# Install\n\n```bash\nnpm i -g vue-classify # or yarn global add vue-classify\n```\n\n# Usage\n\n```\nUsage: vue-classify [options]\n\nOptions:\n  -V, --version  output the version number\n  -i, --input    the input path for vue component\n  -o, --output   the output path for new component, which default value is process.cwd()\n  -n, --name     the output file name, which default value is \"classified.ts\"\n  -h, --help     output usage information\n\n  Examples:\n\n    # transform a vue option-object style component to class component.\n\n    $ vue-classify ./components/option-object.js ./components/Component.ts\n    $ vue-classify -i ./components/option-object.js -o ./components/ -n Component\n```\n\n# Preview Screenshots\n\n## Convert props\n![demo-1](http://vue-classify-demo.surge.sh/demo-1.png)\n\n## SFC\n\n![demo-2](http://vue-classify-demo.surge.sh/demo-2.png)\n\n# Features\n\n- props/watch -\u003e vue-property-decorator decorated class properties\n- computed -\u003e class getter and setter\n- lifecycle hooks -\u003e class methods\n- methods -\u003e class methods\n- other options will be passed to @Component decorator","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhikerpig%2Fvue-classify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhikerpig%2Fvue-classify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhikerpig%2Fvue-classify/lists"}