{"id":20489191,"url":"https://github.com/iaseth/fj","last_synced_at":"2026-04-13T01:02:52.468Z","repository":{"id":262793988,"uuid":"888373275","full_name":"iaseth/fj","owner":"iaseth","description":"A command-line JSON formatter.","archived":false,"fork":false,"pushed_at":"2025-03-31T11:41:15.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-25T03:40:41.397Z","etag":null,"topics":["command-line-tool","formatter","javascript","json","nodejs","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/fj-cli","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/iaseth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-11-14T09:37:55.000Z","updated_at":"2025-03-31T11:41:18.000Z","dependencies_parsed_at":"2025-03-31T12:37:45.259Z","dependency_job_id":null,"html_url":"https://github.com/iaseth/fj","commit_stats":null,"previous_names":["iaseth/fj"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iaseth/fj","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iaseth%2Ffj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iaseth%2Ffj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iaseth%2Ffj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iaseth%2Ffj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iaseth","download_url":"https://codeload.github.com/iaseth/fj/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iaseth%2Ffj/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31735542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T22:19:12.206Z","status":"ssl_error","status_checked_at":"2026-04-12T22:18:33.088Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["command-line-tool","formatter","javascript","json","nodejs","typescript"],"created_at":"2024-11-15T17:11:38.284Z","updated_at":"2026-04-13T01:02:52.435Z","avatar_url":"https://github.com/iaseth.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# fj - JSON Formatter CLI  \n\n`fj` is a command-line utility for formatting JSON files with customizable indentation and output options. It allows users to specify indentation styles, choose output modes, and process multiple JSON files efficiently.  \n\n## Features  \n\n- **Indentation Options:** Use tabs or spaces (1, 2, or 4 spaces).  \n- **Output Modes:**  \n  - **PRINT:** Display formatted JSON in the console (default).  \n  - **ASK:** Prompt for a filename to save the formatted JSON.  \n  - **FJ:** Save the formatted JSON with a `.fj.json` extension.  \n  - **REPLACE:** Overwrite the original file.  \n- **End with Newline:** Optionally append a newline character.  \n- **Batch Processing:** Format multiple JSON files in one command.  \n\n## Installation  \n\nInstall `fj` globally using npm:  \n\n```bash\nnpm i -g fj-cli\n```\n\n## Usage  \n\nRun `fj` from the command line with options and file paths:  \n\n```bash\nfj [options] \u003cfile1.json\u003e \u003cfile2.json\u003e ...\n```\n\n### Options  \n\n- **Indentation:**  \n  - `MIN`: Minify JSON (no spaces).  \n  - `S1` or `1S`: 1-space indentation.  \n  - `S2` or `2S`: 2-space indentation.  \n  - `S4` or `4S`: 4-space indentation.  \n  - `TAB` or `TABS`: Tab indentation.  \n- **Output Modes:**  \n  - `PRINT`: Print formatted JSON to console.  \n  - `ASK`: Prompt for a filename to save.  \n  - `FJ`: Save as `\u003cfilename\u003e.fj.json`.  \n  - `REPLACE`: Overwrite the original file.  \n- **Additional:**  \n  - `ENL`: Append a newline at the end.  \n\n### Examples  \n\n- Format `data.json` using 2 spaces and print to console:  \n  ```bash\n  fj S2 data.json\n  ```\n- Format `data.json` using tabs and save as `data.fj.json`:  \n  ```bash\n  fj TAB FJ data.json\n  ```\n- Minify `data.json` and overwrite the original file:  \n  ```bash\n  fj MIN REPLACE data.json\n  ```\n- Format multiple files with 4 spaces and append a newline:  \n  ```bash\n  fj S4 ENL file1.json file2.json\n  ```\n\n## License  \n\nThis project is licensed under the MIT License.  \n\nFor more details, visit [https://github.com/iaseth/fj](https://github.com/iaseth/fj).  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiaseth%2Ffj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiaseth%2Ffj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiaseth%2Ffj/lists"}