{"id":18899553,"url":"https://github.com/imrandil/csv_to_excel_npm_package","last_synced_at":"2026-02-25T11:38:25.946Z","repository":{"id":240397785,"uuid":"801293908","full_name":"IMRANDIL/csv_to_excel_npm_package","owner":"IMRANDIL","description":"A simple and efficient Node.js module for converting CSV files to Excel (XLSX) format using streams. This package leverages the power of csv-parser and exceljs libraries to handle large datasets efficiently without consuming too much memory.","archived":false,"fork":false,"pushed_at":"2024-05-19T00:40:29.000Z","size":35,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-29T17:37:44.203Z","etag":null,"topics":["csv","javascript","json-server","npm-package","xlsx"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@imrandil/csv-to-excel-converter","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/IMRANDIL.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}},"created_at":"2024-05-16T00:36:45.000Z","updated_at":"2024-05-19T00:40:31.000Z","dependencies_parsed_at":"2024-05-18T15:42:30.269Z","dependency_job_id":"8794b5a0-63d4-448d-b89c-3ffd63e0dc0d","html_url":"https://github.com/IMRANDIL/csv_to_excel_npm_package","commit_stats":null,"previous_names":["imrandil/csv_to_excel_npm_package"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/IMRANDIL/csv_to_excel_npm_package","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IMRANDIL%2Fcsv_to_excel_npm_package","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IMRANDIL%2Fcsv_to_excel_npm_package/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IMRANDIL%2Fcsv_to_excel_npm_package/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IMRANDIL%2Fcsv_to_excel_npm_package/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IMRANDIL","download_url":"https://codeload.github.com/IMRANDIL/csv_to_excel_npm_package/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IMRANDIL%2Fcsv_to_excel_npm_package/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29819429,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T05:36:42.804Z","status":"ssl_error","status_checked_at":"2026-02-25T05:36:31.934Z","response_time":61,"last_error":"SSL_read: 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":["csv","javascript","json-server","npm-package","xlsx"],"created_at":"2024-11-08T08:46:49.740Z","updated_at":"2026-02-25T11:38:25.926Z","avatar_url":"https://github.com/IMRANDIL.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSV to Excel Converter\n\nA simple and efficient Node.js module for converting CSV files to Excel (XLSX) format using streams. This package leverages the power of `csv-parser` and `exceljs` libraries to handle large datasets efficiently without consuming too much memory.\n\n## Features\n\n- **Stream-based processing**: Efficiently handles large CSV files.\n- **Optional header support**: Use your own header or extract from CSV data.\n- **Easy-to-use API**: Simple function call to convert your CSV to Excel.\n\n## Installation\n\n```bash\nnpm install @imrandil/csv-to-excel-converter\n```\n\n## Usage\n\n### Basic Usage\n\n```javascript\nconst csvToExcel = require('@imrandil/csv-to-excel-converter');\n\nconst header = null; // Use null to extract headers from the CSV file\nconst inputFilePath = './path/to/input.csv';\nconst outPutFilePath = './path/to/output.xlsx';\n\ncsvToExcel(header, inputFilePath, outPutFilePath);\n```\n\n### With Custom Headers\n\n```javascript\nconst csvToExcel = require('@imrandil/csv-to-excel-converter');\n\nconst header = [\n  { header: 'id', key: 'id', width: 15 },\n  { header: 'is_active', key: 'is_active', width: 10 },\n  { header: 'created_date', key: 'created_date', width: 25 },\n  { header: 'last_modified_date', key: 'last_modified_date', width: 25 },\n  { header: 'unique_id', key: 'unique_id', width: 20 },\n    // add more headers as needed\n];\nconst inputFilePath = './path/to/input.csv';\nconst outPutFilePath = './path/to/output.xlsx';\n\ncsvToExcel(header, inputFilePath, outPutFilePath);\n```\n\n## Parameters\n\n- `header`: An array of objects containing headers (optional). If not provided, headers will be extracted from the CSV file.\n- `inputFilePath`: The path to the input CSV file (required).\n- `outPutFilePath`: The path to the output Excel file (required).\n\n## Example Use Cases\n\n### 1. Data Migration\n\nEasily migrate data from legacy systems that export data in CSV format to systems that accept Excel files.\n\n### 2. Data Reporting\n\nGenerate Excel reports from CSV data for better readability and data manipulation.\n\n### 3. Data Analysis\n\nConvert CSV files from data analysis tools into Excel format for further analysis with tools like Excel or Google Sheets.\n\n## Error Handling\n\nThe module performs validation on input and output paths and provides meaningful error messages for the user.\n\n```javascript\ntry {\n    csvToExcel(header, inputFilePath, outPutFilePath);\n} catch (error) {\n    console.error('Error processing CSV to Excel:', error.message);\n}\n```\n\n## Contributions\n\nContributions are welcome! Please submit a pull request or open an issue to discuss improvements or features.\n\n## License\n\nThis project is licensed under the MIT License.\n\n---\n\nWith this package, converting CSV files to Excel format is a breeze. It efficiently handles large datasets and offers flexibility with optional headers. Perfect for data migration, reporting, and analysis!\n\n---\n\n### Repository\n\nFor more information, issues, or contributions, visit our [GitHub repository](https://github.com/IMRANDIL/csv_to_excel_npm_package).\n\n### Author\n\nDeveloped by [Ali Imran Adil](https://github.com/IMRANDIL).\n\n---\n\n## Support\n\nIf you have any questions or need support, feel free to [open an issue](https://github.com/IMRANDIL/csv_to_excel_npm_package/issues) on GitHub.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimrandil%2Fcsv_to_excel_npm_package","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimrandil%2Fcsv_to_excel_npm_package","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimrandil%2Fcsv_to_excel_npm_package/lists"}