{"id":32368898,"url":"https://github.com/tarsislimadev/csv2json","last_synced_at":"2026-01-20T16:39:05.814Z","repository":{"id":319182270,"uuid":"1077894845","full_name":"tarsislimadev/csv2json","owner":"tarsislimadev","description":"A simple and efficient tool to convert CSV files to JSON format.","archived":false,"fork":false,"pushed_at":"2025-10-16T22:58:40.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-18T02:02:48.664Z","etag":null,"topics":["csv","csv2json","json","nodejs","npm"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@tarsislimadev/csv2json","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/tarsislimadev.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-10-16T22:42:38.000Z","updated_at":"2025-10-16T22:59:57.000Z","dependencies_parsed_at":"2025-10-18T10:35:48.075Z","dependency_job_id":null,"html_url":"https://github.com/tarsislimadev/csv2json","commit_stats":null,"previous_names":["tarsislimadev/csv2json"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/tarsislimadev/csv2json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarsislimadev%2Fcsv2json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarsislimadev%2Fcsv2json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarsislimadev%2Fcsv2json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarsislimadev%2Fcsv2json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tarsislimadev","download_url":"https://codeload.github.com/tarsislimadev/csv2json/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarsislimadev%2Fcsv2json/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280856800,"owners_count":26403189,"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-24T02:00:06.418Z","response_time":73,"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":["csv","csv2json","json","nodejs","npm"],"created_at":"2025-10-24T19:35:55.852Z","updated_at":"2025-10-24T19:35:58.985Z","avatar_url":"https://github.com/tarsislimadev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [@tarsislimadev/csv2json](https://github.com/tarsislimadev/csv2json)\n\nA simple and efficient tool to convert CSV files to JSON format.\n\n## Installation\n\n### Using NPX (Recommended)\n```bash\nnpx @tarsislimadev/csv2json input.csv output.json\n```\n\n### Using NPM\n```bash\nnpm install -g @tarsislimadev/csv2json\ncsv2json input.csv output.json\n```\n\n### Local Installation\n```bash\nnpm install\nnpm start input.csv output.json\n# or\nnpm run convert input.csv output.json\n```\n\n## Usage\n\n### Command Line\n```bash\ncsv2json \u003cinput-file\u003e [output-file]\n```\n\n**Parameters:**\n- `input-file` (required): Path to the CSV file to convert\n- `output-file` (optional): Path for the output JSON file (defaults to `./file.json`)\n\n### Examples\n\nConvert a CSV file to JSON with default output name:\n```bash\ncsv2json data.csv\n# Creates file.json\n```\n\nConvert a CSV file to JSON with custom output name:\n```bash\ncsv2json data.csv output.json\n# Creates output.json\n```\n\nUsing NPX without installation:\n```bash\nnpx @tarsislimadev/csv2json sales.csv sales.json\n```\n\n## Input Format\n\nThe tool expects CSV files with:\n- Comma-separated values\n- First row as headers (column names)\n- Windows-style line endings (`\\r\\n`)\n\n### Example CSV Input:\n```csv\nname,age,city\nJohn,25,New York\nJane,30,Los Angeles\nBob,35,Chicago\n```\n\n## Output Format\n\nThe tool generates a JSON array where each object represents a row from the CSV:\n\n### Example JSON Output:\n```json\n[\n    {\n        \"name\": \"John\",\n        \"age\": \"25\",\n        \"city\": \"New York\"\n    },\n    {\n        \"name\": \"Jane\",\n        \"age\": \"30\",\n        \"city\": \"Los Angeles\"\n    },\n    {\n        \"name\": \"Bob\",\n        \"age\": \"35\",\n        \"city\": \"Chicago\"\n    }\n]\n```\n\n## Features\n\n- ✅ Simple command-line interface\n- ✅ Automatic header detection\n- ✅ Pretty-formatted JSON output\n- ✅ NPX support for instant usage\n- ✅ Cross-platform compatibility\n\n## Requirements\n\n- Node.js (any recent version)\n\n## Scripts\n\n- `npm start` - Run the converter\n- `npm run convert` - Alternative command to run the converter\n- `npm test` - Placeholder for tests\n\n## License\n\nMIT\n\n## Author\n\n[tarsislimadev](https://github.com/tarsislimadev)\n\n## Contributing\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## Issues\n\nIf you encounter any issues, please report them on the [GitHub Issues page](https://github.com/tarsislimadev/csv2json/issues).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarsislimadev%2Fcsv2json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarsislimadev%2Fcsv2json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarsislimadev%2Fcsv2json/lists"}