{"id":13479748,"url":"https://github.com/maksimr/vim-jsbeautify","last_synced_at":"2026-01-25T09:33:35.127Z","repository":{"id":3004624,"uuid":"4023359","full_name":"maksimr/vim-jsbeautify","owner":"maksimr","description":"vim plugin which formated javascript files by js-beautify","archived":false,"fork":false,"pushed_at":"2022-12-08T14:25:12.000Z","size":2479,"stargazers_count":760,"open_issues_count":18,"forks_count":68,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-04-15T00:11:45.700Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Vim script","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/maksimr.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":"2012-04-14T07:40:11.000Z","updated_at":"2023-10-20T07:20:01.000Z","dependencies_parsed_at":"2023-01-13T12:13:41.658Z","dependency_job_id":null,"html_url":"https://github.com/maksimr/vim-jsbeautify","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/maksimr/vim-jsbeautify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maksimr%2Fvim-jsbeautify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maksimr%2Fvim-jsbeautify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maksimr%2Fvim-jsbeautify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maksimr%2Fvim-jsbeautify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maksimr","download_url":"https://codeload.github.com/maksimr/vim-jsbeautify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maksimr%2Fvim-jsbeautify/sbom","scorecard":{"id":613877,"data":{"date":"2025-08-11","repo":{"name":"github.com/maksimr/vim-jsbeautify","commit":"e4586884c8e54218a92d66f2ebc3fefc46315057"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2,"checks":[{"name":"Code-Review","score":5,"reason":"Found 9/18 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 21 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"61 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-6cpc-mj5c-m9rq","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-9vvw-cc9w-f27h","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-957j-59c2-j692","Warn: Project is vulnerable to: GHSA-m5pj-vjjf-4m3h","Warn: Project is vulnerable to: GHSA-j383-35pm-c5h4","Warn: Project is vulnerable to: GHSA-rm36-94g8-835r","Warn: Project is vulnerable to: GHSA-q42p-pg8m-cqh6","Warn: Project is vulnerable to: GHSA-w457-6q6x-cgp9","Warn: Project is vulnerable to: GHSA-62gr-4qp9-h98f","Warn: Project is vulnerable to: GHSA-f52g-6jhx-586p","Warn: Project is vulnerable to: GHSA-2cf5-4w76-r9qv","Warn: Project is vulnerable to: GHSA-3cqr-58rm-57f8","Warn: Project is vulnerable to: GHSA-g9r4-xpmj-mj65","Warn: Project is vulnerable to: GHSA-q2c6-c6pm-g3gh","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-hxm2-r34f-qmc5","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-f9cm-p3w6-xvr3","Warn: Project is vulnerable to: GHSA-jjv7-qpx3-h62q","Warn: Project is vulnerable to: GHSA-gqgv-6jq5-jjj9","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-4g88-fppr-53pp","Warn: Project is vulnerable to: GHSA-4jqc-8m5r-9rpr","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-c9f4-xj24-8jqx","Warn: Project is vulnerable to: GHSA-cf4h-3jhx-xvhq","Warn: Project is vulnerable to: GHSA-v2p6-4mp7-3r9v","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T03:21:44.556Z","repository_id":3004624,"created_at":"2025-08-21T03:21:44.556Z","updated_at":"2025-08-21T03:21:44.556Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28750875,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T09:00:19.176Z","status":"ssl_error","status_checked_at":"2026-01-25T09:00:04.131Z","response_time":113,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-07-31T16:02:22.395Z","updated_at":"2026-01-25T09:33:35.111Z","avatar_url":"https://github.com/maksimr.png","language":"Vim script","funding_links":[],"categories":["Vim Script","Language and Tooling"],"sub_categories":["Linters and Formatters"],"readme":"## vim-jsbeautify - v1.1.3 - 2018-01-31\n\n[![Build Status](https://secure.travis-ci.org/maksimr/vim-jsbeautify.png)](http://travis-ci.org/maksimr/vim-jsbeautify)\n\n## Description\n\nThis extension allows you to use [jsbeautifier](http://jsbeautifier.org/)\ninside vim to quickly format javascript, html and css files.\nVersion 1.0 also supports the [editorconfig](http://editorconfig.org/) file.\n\nAny comments, corrections and suggestions are welcome.\n\n## Installation\n\n### Dependencies\n\n* A javascript interpreter: [nodejs](http://nodejs.org/) or [v8](http://code.google.com/p/v8/).\n* [js-beautify](https://github.com/beautify-web/js-beautify)\n* Optional: [editorconfig-vim](https://github.com/editorconfig/editorconfig-vim)\n\n### Installing without plugin-manager\n\nDownload zip [file](https://github.com/maksimr/vim-jsbeautify/archive/master.zip)\nor clone project. Then copy `plugin` folder from the plugin's directory to your `~/.vim` folder.\n\n``` bash\nunzip vim-jsbeautify-master.zip\ncd vim-jsbeautify-master\ncp -r plugin ~/.vim/\n```\n\nThen download the zip file for [js-beautify](https://github.com/beautify-web/js-beautify/archive/master.zip) and place its contents in `~/.vim/plugin/lib/`, ie:\n```bash\nwget https://github.com/beautify-web/js-beautify/archive/v1.8.9.zip \u0026\u0026 unzip v1.8.9.zip \u0026\u0026 cp -rf js-beautify-1.8.9/ ~/.vim/plugin/lib/\n```\n\n### Installing using pathogen\n\n```bash\ncd ~/.vim/bundle\ngit clone https://github.com/maksimr/vim-jsbeautify.git\ncd vim-jsbeautify \u0026\u0026 git submodule update --init --recursive\n```\n\n### Installing using vundle\n\n1. Add this line to your `.vimrc`:\n\n  ```vim\n  Plugin 'maksimr/vim-jsbeautify'\n  ```\n  \n2. Call `PluginInstall()` inside vim:\n\n  ```vim\n  :PluginInstall\n  ```\n  \n3. Update git submodules: `cd ~/.vim/bundle/vim-jsbeautify \u0026\u0026 git submodule update --init --recursive`\n\n## Settings\n\nIn version 1.0, all configuration is done through the `.editorconfig` file.\nThis file can be located either in the user home directory `~/.editorconfig`,\nor in inside the vim configuration directory `~/.vim/.editorconfig`.\n\nTo assign a custom path for the `.editorconfig` file set the variable `g:editorconfig_Beautifier`.\n\nSettings are taken from sections `[**.js]`, `[**.json]`, `[**.jsx]`, `[**.html]`, and `[**.css]`. Within these\nsections can use a special comment `; vim:`, but this comment\ncan be used only for the global settings.\n\nYou can also configure a variable ```g: config_Beautifier```(g:config_Beautifier has type **dict**), but it is better to use the `.editorconfig` file.\n\n\n### Examples\n\nA simple example of the `.editorconfig` file:\n\n```ini\n;.editorconfig\n\nroot = true\n\n[**.js]\nindent_style = space\nindent_size = 4\n\n[**.json]\nindent_style = space\nindent_size = 4\n\n[**.jsx]\ne4x = true\nindent_style = space\nindent_size = 4\n\n[**.css]\nindent_style = space\nindent_size = 4\n\n[**.html]\nindent_style = space\nindent_size = 4\nmax_char = 78\nbrace_style = expand\n```\n\nThe `.editorconfig` file uses special comments (```;vim:```)\nand special properties for the jsbeautify plugin like ```path```, ```bin```\n\n```ini\n;.editorconfig\n\nroot = true\n\n[**.js]\n; path to optional external js beautifier, default is vim-jsbeautify/plugin/lib\npath=~/.vim/bundle/js-beautify/js/lib/beautify.js\n; Javascript interpreter to be invoked by default 'node'\nbin=node\nindent_style = space\nindent_size = 4\n\n[**.css]\npath=~/.vim/bundle/js-beautify/js/lib/beautify-css.js\nindent_style = space\nindent_size = 4\n\n[**.html]\n; Using special comments\n; And such comments or apply only in global configuration\n; So it's best to avoid them\n;vim:path=~/.vim/bundle/js-beautify/js/lib/beautify-html.js\n;vim:max_char=78:brace_style=expand\nindent_style = space\nindent_size = 4\n```\n\n## Usage\n\n```vim\n\".vimrc\nmap \u003cc-f\u003e :call JsBeautify()\u003ccr\u003e\n\" or\nautocmd FileType javascript noremap \u003cbuffer\u003e  \u003cc-f\u003e :call JsBeautify()\u003ccr\u003e\n\" for json\nautocmd FileType json noremap \u003cbuffer\u003e \u003cc-f\u003e :call JsonBeautify()\u003ccr\u003e\n\" for jsx\nautocmd FileType jsx noremap \u003cbuffer\u003e \u003cc-f\u003e :call JsxBeautify()\u003ccr\u003e\n\" for html\nautocmd FileType html noremap \u003cbuffer\u003e \u003cc-f\u003e :call HtmlBeautify()\u003ccr\u003e\n\" for css or scss\nautocmd FileType css noremap \u003cbuffer\u003e \u003cc-f\u003e :call CSSBeautify()\u003ccr\u003e\n```\n\nJsBeautify function takes two parameters: the starting line number and the ending line number. By\ndefault these parameters are set to `0` and `$`.\n\nIf you want to beautify only selected lines you should use functions\n**RangeJsBeautify**, **RangeJsonBeautify**, **RangeJsxBeautify**, **RangeHtmlBeautify**, or **RangeCSSBeautify**.\n\nExample of binding a function for js, html and css in visual mode on \u003cctrl-f\u003e\n\n```vim\n\".vimrc\nautocmd FileType javascript vnoremap \u003cbuffer\u003e  \u003cc-f\u003e :call RangeJsBeautify()\u003ccr\u003e\nautocmd FileType json vnoremap \u003cbuffer\u003e \u003cc-f\u003e :call RangeJsonBeautify()\u003ccr\u003e\nautocmd FileType jsx vnoremap \u003cbuffer\u003e \u003cc-f\u003e :call RangeJsxBeautify()\u003ccr\u003e\nautocmd FileType html vnoremap \u003cbuffer\u003e \u003cc-f\u003e :call RangeHtmlBeautify()\u003ccr\u003e\nautocmd FileType css vnoremap \u003cbuffer\u003e \u003cc-f\u003e :call RangeCSSBeautify()\u003ccr\u003e\n```\n\n## Running tests\n\n```\nnpm install\nbundle install\nnpm test\n```\n\n\n\nThanks for assistance:\n\n+ [@stonelee](https://github.com/stonelee)\n+ [@peterfoldi](https://github.com/peterfoldi)\n+ [@edmistond](https://github.com/edmistond)\n\n\n## Versions\n\nv1.1.3\n  + Add support js-beautify v1.7.5\n\nv1.1.2\n  + Add support js-beautify v1.6.3\n\nv1.1.1\n  + Add support js-beautify v1.3.1\n\n## License\n\nLicensed MIT\nCopyright (c) 2018 Maksim Ryzhikov;\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaksimr%2Fvim-jsbeautify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaksimr%2Fvim-jsbeautify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaksimr%2Fvim-jsbeautify/lists"}