{"id":21694199,"url":"https://github.com/emadda/transform-x","last_synced_at":"2026-03-02T05:04:45.906Z","repository":{"id":195541793,"uuid":"693164933","full_name":"emadda/transform-x","owner":"emadda","description":"Convert between SQLite, Excel and JSON formats.","archived":false,"fork":false,"pushed_at":"2023-09-21T18:42:31.000Z","size":1065,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-02T08:18:47.117Z","etag":null,"topics":["cli","convert","excel","sqlite"],"latest_commit_sha":null,"homepage":"https://transform-x.dev","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/emadda.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}},"created_at":"2023-09-18T13:32:00.000Z","updated_at":"2025-10-06T13:18:53.000Z","dependencies_parsed_at":"2023-09-18T16:32:35.788Z","dependency_job_id":"3b15ce3b-a77a-45b9-9a0e-973c2f096c75","html_url":"https://github.com/emadda/transform-x","commit_stats":null,"previous_names":["emadda/transform-x"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/emadda/transform-x","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emadda%2Ftransform-x","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emadda%2Ftransform-x/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emadda%2Ftransform-x/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emadda%2Ftransform-x/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emadda","download_url":"https://codeload.github.com/emadda/transform-x/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emadda%2Ftransform-x/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29993116,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"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":["cli","convert","excel","sqlite"],"created_at":"2024-11-25T18:27:14.466Z","updated_at":"2026-03-02T05:04:45.092Z","avatar_url":"https://github.com/emadda.png","language":"TypeScript","readme":"# transform-x\n\nJS functions to convert between JSON, SQLite and Excel. \n\nUse via:\n\n- [JS library](#use-as-a-js-library)\n- [CLI](#clis)\n- [Web UI](https://transform-x.dev)\n- [HTTP API](https://api.transform-x.dev)\n\n\nPortable: Aims to work in any web standards compatible JS runtime (browser, Node.js, Deno, Bun, Cloudflare Workers).\n\n\n## Use as a JS library\n\n`npm install transform-x`\n\n```js\n// Use with Node.js\nconst x = require(\"transform-x\");\nx.json_to_sqlite;\n\n\n// Use with vanilla JS ESM (web bundle)\nimport {json_to_excel, sqlite_to_json} from \"transform-x\";\n\n\n// Use with Typescript (web bundle)\nimport {json_to_excel, sqlite_to_json} from \"transform-x/src/lib\";\n```\n\nSee [tests](./tests) directory for function usage examples.\n\n## Web UI\n\nYou can convert between formats in your browser at [transform-x.dev](https://transform-x.dev).\n\n## CLI's\n\n- JSON ↔ Excel\n\t- `json_to_excel`\n\t- `excel_to_json`\n\n- JSON ↔ SQLite\n\t- `json_to_sqlite`\n\t- `sqlite_to_json`\n\n- SQLite ↔ Excel \n\t- `sqlite_to_excel`\n\t- `excel_to_sqlite`\n\n## Install\n\n```bash\n# This installs `$x_to_$y` CLI's that can be auto completed in your terminal with tab.\nnpm install -g transform-x\n```\n\n## JSON ↔ Excel\n\n```bash\n# Provide both files as args.\njson_to_excel --i ./input.json --o ./output.xlsx\n\n# Use stdin (single sheet)\necho '[{\"x\": 2}, {\"x\": 3, \"y\": {\"h\": 1}}]' | json_to_excel --o ./output.xlsx\n\n# Use stdout\njson_to_excel --i ./input.json \u003e./output.xlsx\n\n# Write output to temp file, open in Excel app (macOS only).\necho '[{\"x\": 2}, {\"x\": 3, \"y\": {\"h\": 1}}]' | json_to_excel --open\n\n\n# Pipe SQLite query result to Excel.\nsqlite3 -json db.sqlite \"select * from tbl_a\" | json_to_excel --open\n```\n\n## JSON ↔ SQLite\n\n```bash\n# Provide both files as args.\njson_to_sqlite --i ./input.json --o ./output.sqlite\n\n# Use stdin (single table)\necho '[{\"x\": 2}, {\"x\": 3, \"y\": {\"h\": 1}}]' | json_to_sqlite --o ./output.sqlite\n\n# Use stdout\njson_to_sqlite --i ./input.json \u003e./output.sqlite\n\n# Write output to temp file, open in native desktop GUI (macOS only).\necho '[{\"x\": 2}, {\"x\": 3, \"y\": {\"h\": 1}}]' | json_to_sqlite --open\n```\n\n## CLI limits\n\n- `sqlite_to_json`\n\t- SQLite/JSON limited to around 500MB in size.\n\t\t- SQLite files are read/written using JS RAM (as WASM is used).\n\t\t- JSON output is [limited to between 500MB to 1GB in size](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length#description) as this is the size limit of a JS string.\n\n\t- Binary values will be set to null in the output JSON.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femadda%2Ftransform-x","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femadda%2Ftransform-x","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femadda%2Ftransform-x/lists"}