{"id":22109056,"url":"https://github.com/unibeautify/cli","last_synced_at":"2025-07-16T23:34:21.552Z","repository":{"id":37686215,"uuid":"65061973","full_name":"Unibeautify/cli","owner":"Unibeautify","description":"CLI for Unibeautify","archived":false,"fork":false,"pushed_at":"2025-06-30T07:14:49.000Z","size":1197,"stargazers_count":35,"open_issues_count":43,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-30T08:27:51.633Z","etag":null,"topics":["beautifier","cli","unibeautify"],"latest_commit_sha":null,"homepage":"https://github.com/unibeautify/unibeautify","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/Unibeautify.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-08-06T02:58:12.000Z","updated_at":"2023-06-13T19:43:37.000Z","dependencies_parsed_at":"2023-10-14T23:06:42.265Z","dependency_job_id":"7592c589-1e34-4433-a55a-ae504d286b02","html_url":"https://github.com/Unibeautify/cli","commit_stats":{"total_commits":305,"total_committers":7,"mean_commits":43.57142857142857,"dds":0.4131147540983606,"last_synced_commit":"bb6140682d92ff6ca756a79795cf918235e60a78"},"previous_names":["unibeautify/unibeautify-cli"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Unibeautify/cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Unibeautify%2Fcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Unibeautify%2Fcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Unibeautify%2Fcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Unibeautify%2Fcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Unibeautify","download_url":"https://codeload.github.com/Unibeautify/cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Unibeautify%2Fcli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265550378,"owners_count":23786556,"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":["beautifier","cli","unibeautify"],"created_at":"2024-12-01T09:28:14.805Z","updated_at":"2025-07-16T23:34:21.531Z","avatar_url":"https://github.com/Unibeautify.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unibeautify-CLI\n\n[![Build Status](https://travis-ci.com/Unibeautify/cli.svg?branch=master)](https://travis-ci.com/Unibeautify/cli) [![Maintainability](https://api.codeclimate.com/v1/badges/722b515b28d1bb71b6c7/maintainability)](https://codeclimate.com/github/Unibeautify/cli/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/722b515b28d1bb71b6c7/test_coverage)](https://codeclimate.com/github/Unibeautify/cli/test_coverage)\n\n\u003e CLI for [Unibeautify](https://github.com/Unibeautify/unibeautify)\n\n## Installation\n\n```bash\n$ npm install --global @unibeautify/cli\n```\n\n## Usage\n\nThe package will be globally accessible as a new command-line interface (CLI) application called [`unibeautify`](https://github.com/Unibeautify/unibeautify).\n\n### Help\n\n**Note**: Not all options are currently supported.\n\n```bash\n$ unibeautify --help\n\nunibeautify\n\nBeautify Files\n\nCommands:\n  unibeautify          Beautify Files                                  [default]\n  unibeautify support  List languages and beautifiers        [aliases: list, ls]\n\nOptions:\n  --version          Show version number                               [boolean]\n  --help             Show help                                         [boolean]\n  --config-file, -c  Beautifier configuration file                      [string]\n  --config-json      Beautifier configuration as stringified JSON       [string]\n  --file-path, -f    Path of the file to beautify from stdin            [string]\n  --inplace, -i      Replace file(s) with beautified results [boolean] [default: false]  \n  --language, -l     Language of file to beautify            [string] [required]\n  --out-file, -o     Output file of beautified results                  [string]\n\n```\n```bash\n$ unibeautify list --help\n\nunibeautify support\n\nList languages and beautifiers\n\nOptions:\n  --version          Show version number                               [boolean]\n  --help             Show help                                         [boolean]\n  --all, -a          List all languages supported               [default: false]\n  --beautifiers, -b  List installed beautifiers                 [default: false]\n  --json, -j         List as JSON array                         [default: false]\n  --languages, -l    List supported languages based on installed beautifiers [default: false]\n```\n\n### Example\n\nInstall [`unibeautify`](https://github.com/Unibeautify/unibeautify) and a Beautifier, such as [`beautifier-prettydiff`](https://github.com/Unibeautify/beautifier-prettydiff):\n\n```\n$ npm install --global unibeautify @unibeautify/beautifier-prettydiff\n```\n\nThen beautify using a language that Beautifier supports:\n\n```bash\n$ unibeautify --language JavaScript --config-json '{\"JavaScript\": {\"beautifiers\": [\"ESLint\"],\"quotes\": \"double\"}}' \u003c\u003c\u003c \"const test = 'test';\"\n```\n\nThis returns the following formatted result:\n\n```javascript\nconst test = \"test\";\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funibeautify%2Fcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funibeautify%2Fcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funibeautify%2Fcli/lists"}