Excel to CSV Converter
A Node.js package for converting Excel files to CSV files.
Installation
Install the package using npm:
npm install excel-csv-converter
or
npm i excel-csv-converter
Function
excelToCsv(srcFilePath, newFileName)
Converts an Excel file to a CSV file.
Parameters
-
srcFilePath
(string): The file path of the Excel sheet to convert. -
newFileName
(string): The filename of the newly created CSV file.
Example:-
const excelToCsv = require('excel-csv-converter');
// Convert 'example.xlsx' to 'example.csv'
excelToCsv('example.xlsx', 'example.csv');