{"id":19249180,"url":"https://github.com/adbayb/atom-formatter-jsbeautify","last_synced_at":"2025-10-08T01:49:39.031Z","repository":{"id":89446985,"uuid":"57449261","full_name":"adbayb/atom-formatter-jsbeautify","owner":"adbayb","description":"⚙️ Formatter plugin providing js-beautify interface for Atom editor","archived":false,"fork":false,"pushed_at":"2023-12-15T02:41:28.000Z","size":31,"stargazers_count":4,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T01:49:35.480Z","etag":null,"topics":["atom","tool"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/adbayb.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-04-30T15:35:15.000Z","updated_at":"2022-09-02T07:41:07.000Z","dependencies_parsed_at":"2023-12-15T03:38:19.747Z","dependency_job_id":"921a1091-71e9-41ab-aaba-5541542ffda8","html_url":"https://github.com/adbayb/atom-formatter-jsbeautify","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/adbayb/atom-formatter-jsbeautify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adbayb%2Fatom-formatter-jsbeautify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adbayb%2Fatom-formatter-jsbeautify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adbayb%2Fatom-formatter-jsbeautify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adbayb%2Fatom-formatter-jsbeautify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adbayb","download_url":"https://codeload.github.com/adbayb/atom-formatter-jsbeautify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adbayb%2Fatom-formatter-jsbeautify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278877088,"owners_count":26061380,"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-10-07T02:00:06.786Z","response_time":59,"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":["atom","tool"],"created_at":"2024-11-09T18:12:59.083Z","updated_at":"2025-10-08T01:49:38.991Z","avatar_url":"https://github.com/adbayb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# atom-formatter-jsbeautify\n\u003cbr/\u003e\n\nFormatter plugin adding a js-beautify interface to the Atom editor.\nThis plugin can reformat and reindent your source code with a bunch of accepted file formats:\n\n\u003e **Javascript/JSON:** *.js, .jsx, .json* \u003cbr/\u003e\u003cbr/\u003e\n\u003e **Css and its pre-processors:** *.css, .sass, .scss, .less* \u003cbr/\u003e\u003cbr/\u003e\n\u003e **HTML/XML:** *.html, .xml* \u003cbr/\u003e\n\n\u003cbr/\u003e\n## Prerequisites:\n\u003cbr/\u003e\n- [x] Install [Atom Formatter package](https://atom.io/packages/formatter)\n- [x] Install this package ([atom-formatter-jsbeautify](https://atom.io/packages/atom-formatter-jsbeautify))\n- [x] No more setup and no more package configurations are required. You are, now, good to go :)\n\n\u003cbr/\u003e\n## Usage:\n\u003cbr/\u003e\n### Keybindings:\n\nIt takes the default keybindings from Formatter. E.g, by default (you can customize these in the Atom keymap.cson):\n\n```cson\n'atom-text-editor':\n  'alt-ctrl-l': 'formatter:format-code'\n  'alt-cmd-l': 'formatter:format-code'\n```\n\n### Configurations:\n\nBy default, it loads configurations from .jsbeautifyrc file. **This file must be located in the root of your project folder to be taken into account.**\u003cbr/\u003e\nWhenever the file isn't found, an error popup will be displayed. The code will then be beautified thanks to the default js-beautify configurations.\n\nThe config file must be valid JSON and looks like the one supported by js-beautify itself:\n\n```json\n{\n\t\"comment\": \"Configurations for [js, jsx, json] and Shared configurations\",\n\n\t\"brace_style\": \"collapse-preserve-inline\",\n\t\"break_chained_methods\": false,\n\t\"comma_first\": false,\n\t\"e4x\": true,\n\t\"end_with_newline\": true,\n\t\"eol\": \"\\n\",\n\t\"eval_code\": false,\n\t\"keep_array_indentation\": false,\n\t\"keep_function_indentation\": false,\n\t\"indent_size\": 4,\n\t\"indent_char\": \" \",\n\t\"indent_level\": 0,\n\t\"indent_with_tabs\": true,\n\t\"jslint_happy\": false,\n\t\"max_preserve_newlines\": 10,\n\t\"preserve_newlines\": true,\n\t\"space_after_anon_function\": false,\n\t\"space_before_conditional\": false,\n\t\"space_in_paren\": false,\n\t\"wrap_attributes\": \"auto\",\n\t\"wrap_attributes_indent_size\": 4,\n\t\"wrap_line_length\": 0,\n\t\"unescape_strings\": false,\n\n\n\t\"comment\": \"Configurations for [css] and its pre-processors [sass, scss, less]\",\n\n\t\"newline_between_rules\": true,\n\t\"selector_separator_newline\": false,\n\n\n\t\"comment\": \"Configurations for [html, xml]\",\n\n\t\"extra_liners\": [\"head\", \"body\", \"/html\"],\n\t\"indent_inner_html\": true,\n\t\"indent_scripts\": \"normal\",\n\t\"unformatted\": [\"inline\"]\n}\n```\n\nFor more descriptions about available configuration options and their impacts to beautification process:\u003cbr/\u003e\n[JSON Schemastore](http://json.schemastore.org/jsbeautifyrc)\u003cbr/\u003e\n[JSBeautify](https://github.com/beautify-web/js-beautify)\n\n\u003cbr/\u003e\n## License\n\u003cbr/\u003e\n[MIT](./LICENSE \"License MIT\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadbayb%2Fatom-formatter-jsbeautify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadbayb%2Fatom-formatter-jsbeautify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadbayb%2Fatom-formatter-jsbeautify/lists"}