{"id":18722027,"url":"https://github.com/realign/vue-sfc-descriptor-stringify","last_synced_at":"2025-10-08T09:17:58.128Z","repository":{"id":57396584,"uuid":"200952194","full_name":"ReAlign/vue-sfc-descriptor-stringify","owner":"ReAlign","description":null,"archived":false,"fork":false,"pushed_at":"2019-08-07T08:41:09.000Z","size":6,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-26T09:03:40.590Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ReAlign.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}},"created_at":"2019-08-07T01:52:38.000Z","updated_at":"2024-10-17T10:01:26.000Z","dependencies_parsed_at":"2022-08-27T16:40:13.627Z","dependency_job_id":null,"html_url":"https://github.com/ReAlign/vue-sfc-descriptor-stringify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReAlign%2Fvue-sfc-descriptor-stringify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReAlign%2Fvue-sfc-descriptor-stringify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReAlign%2Fvue-sfc-descriptor-stringify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReAlign%2Fvue-sfc-descriptor-stringify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ReAlign","download_url":"https://codeload.github.com/ReAlign/vue-sfc-descriptor-stringify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248581357,"owners_count":21128155,"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":[],"created_at":"2024-11-07T13:39:28.362Z","updated_at":"2025-10-08T09:17:58.058Z","avatar_url":"https://github.com/ReAlign.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-sfc-descriptor-stringify\n\n\u003e Translate Vue SFC descriptor to String.\n\u003e 将 vue-sfc 描述 转为 字符串。\n\n## Scene\n\n需要操作 `vue` 文件，进行 `属性` 或者 `内容` 的更改，类似 `babel`。\n\n## Usage\n\n### Install\n\n```bash\n# install\n$ npm i vue-sfc-descriptor-stringify -D\n```\n\n### Call\n\n```js\nconst Stringify = require('vue-sfc-descriptor-stringify');\n\n/**\n * @name    Stringify\n * @param\n *  sfcDescriptor       需要转换成 string 的 sfc\n *  originSfcDescriptor 原始 sfc，如果没有对 sfcDescriptor 处理的话，跟 sfcDescriptor 是一样的\n *  options             配置\n *      indents         缩进\n *          template:   2 // 默认\n *          script:     0 // 默认\n *          style:      0 // 默认\n * @returns String      转换之后的 vue-sfc 内容\n */\nconst str = Stringify(sfcDescriptor, originSfcDescriptor, options);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealign%2Fvue-sfc-descriptor-stringify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frealign%2Fvue-sfc-descriptor-stringify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealign%2Fvue-sfc-descriptor-stringify/lists"}