XLSX-MySQL is a Node.js library (v1.0.8) that compares an XLSX workbook against a MySQL database and applies workbook changes as SQL updates. It wraps the csv-mysql package with XLSX-to-CSV conversion via the xlsx module. The library is experimental and minimally functional: the main export is a function that takes a config object but returns nothing, relies on a sleep-based workaround for sheet processing, and requires exact sheet-to-table and column name matching. No active maintenance or release cadence; known issues remain unfixed. Not recommended for production use.
npm install xlsx-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: import via require(), configure MySQL connection and CSV delimiter, then invoke the main function with file path.
Wrap usage in a custom promise or callback if you need to know when processing completes.
Replace sleep with Promise.all() or a proper async loop with concurrency control.
Rename sheets to match existing table names before processing.
Ensure spelling and capitalization of columns match database schema.
Use CommonJS require: const XLSXtoMYSQL = require('xlsx-mysql');Run: npm install csv-mysql (or yarn add csv-mysql)