shravan20/flare.ts

feat: CSV Utilities

Opened this issue · 2 comments

Summary:

Develop CSV utilities that facilitate seamless reading of CSV files, conversion of CSV to JSON and list of JSON objects, and transformation of CSV data into PDF files. These utilities will greatly aid in handling CSV data efficiently and generating different output formats for further usage.

Motivation

CSV (Comma-Separated Values) is a widely used data interchange format. Creating utilities that simplify reading, conversion, and transformation of CSV data will save developers time and effort in processing CSV data and allow for integration with various applications that utilize JSON and PDF formats.

Proposed Functionalities

  • CSV Reading: Create a utility method to read CSV files and return the data in a structured format (e.g., an array of arrays or an array of objects).
  • CSV to JSON: Develop a utility method to convert CSV data to JSON format, providing flexibility in data representation.
  • CSV to List of JSON: Implement a utility method to transform CSV data into a list of JSON objects, facilitating easy processing and integration.
    CSV to PDF: Build a utility method to generate a PDF document from CSV data, allowing for easy sharing and printing of the data.
  • CSV to Excel (XLSX): Implement a utility method to convert CSV data to the Excel format (.xlsx), allowing for easy import into Excel applications.
    Excel Configuration Options: Provide options to customize the exported Excel file, such as sheet name, cell formatting, column mapping, etc.
  • Error Handling: Implement robust error handling to manage invalid CSV formats or other exceptional conditions.

Documentation:

Include comprehensive documentation explaining usage, parameters, and expected outcomes for each utility method.

Expected Outcome

Upon successful implementation, developers will be equipped with versatile CSV utilities, simplifying CSV data handling and enabling effortless conversion to commonly used formats like JSON and PDF.

Please assign this issue to me.

Amazing, assigning it to you @VishalMyla