{"id":26233865,"url":"https://github.com/krishana7911/json-to-table-cli","last_synced_at":"2026-04-30T05:36:41.600Z","repository":{"id":278175074,"uuid":"934757391","full_name":"krishana7911/json-to-table-cli","owner":"krishana7911","description":"[Under Progress ] npm package to convert JSON and CSV data into a Markdown table. Supports both API responses and local JSON files.","archived":false,"fork":false,"pushed_at":"2025-02-21T14:07:12.000Z","size":23,"stargazers_count":1,"open_issues_count":19,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-30T12:40:21.719Z","etag":null,"topics":["api","cli","csv-to-markdown","developer-tools","json","json-to-table","markdown","table"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/krishana7911.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-18T11:01:22.000Z","updated_at":"2025-02-22T15:10:01.000Z","dependencies_parsed_at":"2025-02-18T12:23:22.696Z","dependency_job_id":"08e694f6-3e9f-464d-93ab-aa6ae4014860","html_url":"https://github.com/krishana7911/json-to-table-cli","commit_stats":null,"previous_names":["krishana7911/json-to-table-cli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/krishana7911/json-to-table-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krishana7911%2Fjson-to-table-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krishana7911%2Fjson-to-table-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krishana7911%2Fjson-to-table-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krishana7911%2Fjson-to-table-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krishana7911","download_url":"https://codeload.github.com/krishana7911/json-to-table-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krishana7911%2Fjson-to-table-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32456167,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"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":["api","cli","csv-to-markdown","developer-tools","json","json-to-table","markdown","table"],"created_at":"2025-03-13T01:18:02.968Z","updated_at":"2026-04-30T05:36:36.588Z","avatar_url":"https://github.com/krishana7911.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON to Table CLI\n\nA simple and lightweight CLI tool to convert JSON data (from files or API responses) into a human-readable Markdown table format. Perfect for documentation or quick data viewing.\n\n## 🚀 Features\n- 📁 Convert a local JSON file to a Markdown table.\n- 🌐 Fetch JSON data directly from an API and convert it to a table.\n- 📝 Output the table to a `.md` file for easy documentation integration.\n- ❌ Error handling for invalid JSON input or missing parameters.\n\n## 📦 Installation\n\nYou can either install the CLI globally or run it with `npx` without installation.\n\n### Using `npx` (No Installation Required)\nRun the following command to execute the tool:\n\n```bash\nnpx json-to-table-cli --url \u003capi-url\u003e --output \u003coutput-file.md\u003e\n```\n\n### Install Globally\nTo install the tool globally:\n\n```bash\nnpm install -g json-to-table-cli\n```\n\n## 📝 Usage\n\n### 1. Convert JSON from an API to Markdown Table\n```bash\njson-to-table-cli --url https://jsonplaceholder.typicode.com/users --output users-table.md\n```\n\n### 2. Convert a Local JSON File to Markdown Table\n```bash\njson-to-table-cli --file ./data/users.json --output users-table.md\n```\n\n### 3. Display Help\n```bash\njson-to-table-cli --help\n```\n\n## 📊 Example Output\n\nGiven the following JSON:\n\n```json\n[\n  { \"id\": 1, \"name\": \"John Doe\", \"email\": \"john@example.com\" },\n  { \"id\": 2, \"name\": \"Jane Smith\", \"email\": \"jane@example.com\" }\n]\n```\n\nThe generated `users-table.md` will look like this:\n\n```markdown\n| ID  | Name        | Email             |\n| --- | ----------- | ----------------- |\n| 1   | John Doe    | john@example.com  |\n| 2   | Jane Smith  | jane@example.com  |\n```\n\n## 🛠️ Error Handling\n\nIf something goes wrong, you'll get a clear error message. Common issues include:\n- Invalid JSON format.\n- Missing `--url` or `--file` parameter.\n- File path or API endpoint not accessible.\n\n## 🤝 Contributing\n\nContributions are welcome! If you'd like to add new features or improve the code, feel free to fork the repo and submit a pull request.\n\n## 📜 License\n\nThis project is licensed under the MIT License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrishana7911%2Fjson-to-table-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrishana7911%2Fjson-to-table-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrishana7911%2Fjson-to-table-cli/lists"}