{"id":18761213,"url":"https://github.com/maranimatias/vue-formatter","last_synced_at":"2025-08-10T04:11:08.494Z","repository":{"id":55863466,"uuid":"102208851","full_name":"MaraniMatias/vue-formatter","owner":"MaraniMatias","description":"vue-beautifier for node","archived":false,"fork":false,"pushed_at":"2020-12-10T20:31:42.000Z","size":46,"stargazers_count":21,"open_issues_count":4,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T18:45:39.789Z","etag":null,"topics":["beautifier","cli","command-line","formatter","node-module","npm-package","vim","vim-plugin","vue","vuejs"],"latest_commit_sha":null,"homepage":null,"language":"Vue","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/MaraniMatias.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-09-02T16:21:30.000Z","updated_at":"2023-09-27T12:20:57.000Z","dependencies_parsed_at":"2022-08-15T08:00:56.238Z","dependency_job_id":null,"html_url":"https://github.com/MaraniMatias/vue-formatter","commit_stats":null,"previous_names":["maranimatias/vue-fomatter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MaraniMatias/vue-formatter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaraniMatias%2Fvue-formatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaraniMatias%2Fvue-formatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaraniMatias%2Fvue-formatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaraniMatias%2Fvue-formatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaraniMatias","download_url":"https://codeload.github.com/MaraniMatias/vue-formatter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaraniMatias%2Fvue-formatter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269674019,"owners_count":24457251,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["beautifier","cli","command-line","formatter","node-module","npm-package","vim","vim-plugin","vue","vuejs"],"created_at":"2024-11-07T18:15:21.782Z","updated_at":"2025-08-10T04:11:08.471Z","avatar_url":"https://github.com/MaraniMatias.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-formatter\n\nvue-beautifier for node\n\n```shell\nnpm install -g vue-formatter\n```\n## Using\n\n### Cli\n```shell\ncat my-compnet.vue | vue-formatter | sponge my-compnet.vue\n```\nor alternatively\n```shell\ncat my-compnet.vue | vue-formatter \u003e my-compnet.vue.tmp \u0026\u0026 mv my-compnet.vue.tmp my-compnet.vue\n```\n\n\n\n### JavaScript\n```shell\nnpm install vue-formatter\n```\n\n```javascript\nconst formatter = require('vue-formatter');\nconst fs = require('fs');\n\nfs.readFile('foo.vue', 'utf8', function (err, data) {\n    if (err) { throw err; }\n    console.log(formatter(data));\n});\n```\n\n### Using on VIM\n\nKey map on `.vimrc`\n\n```shell\nautocmd FileType vue noremap \u003cbuffer\u003e \u003cc-f\u003e :%!vue-formatter\u003cCR\u003e\n```\n\n## Defaults options for JS-beautify\n\n```json\n{\n  \"indent_size\": 2,\n  \"indent_char\": \" \",\n  \"indent_with_tabs\": false,\n  \"eol\": \"\\n\",\n  \"end_with_newline\": false,\n  \"indent_level\": 0,\n  \"preserve_newlines\": true,\n  \"max_preserve_newlines\": 3,\n  \"space_in_paren\": false,\n  \"space_in_empty_paren\": false,\n  \"jslint_happy\": true,\n  \"space_after_anon_function\": true,\n  \"brace_style\": \"collapse,preserve-inline\",\n  \"break_chained_methods\": false,\n  \"keep_array_indentation\": true,\n  \"unescape_strings\": false,\n  \"wrap_line_length\": 0,\n  \"e4x\": false,\n  \"comma_first\": false,\n  \"operator_position\": \"before-newline\"\n}\n```\n\n----\n\n_Donate_\n\n**Bitcoin** 3GonBQ8XibkL9d5SDu5j7MccavV1VKXXet\n\n**Ethereum** 0xf3ca8c0630ceee045f715b5c596e70887a903d38\n\n**Monero** 86sR1arBcYW918Bf8NhN3bCynwGfbzMna48KfsffHi8L1UEKqwu6FVRR3canexk3jfByB99gWB5bSFxvAt2ZneigLmSNxJB\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaranimatias%2Fvue-formatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaranimatias%2Fvue-formatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaranimatias%2Fvue-formatter/lists"}