A lightweight Node.js library for converting CSV files into SQL INSERT statements. Version 0.1.14 is the latest stable release, updated irregularly. It provides a simple CLI and programmatic API to parse CSV data and generate SQL scripts, with options for table naming and batch processing. Differentiators: minimal dependencies, straightforward output, no database connection required. Suitable for quick data migrations or backups.
npm install csv-to-sqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Converts a CSV string to SQL INSERT statements with a specified table name.
Preprocess CSV to escape single quotes or use a more robust library.
Use programmatic API instead of CLI for stability.
Manually transform output if needed for different SQL syntax.
Use dynamic import or ensure ESM environment.
Run 'npm install csv-to-sql' and use correct import: import { convert } from 'csv-to-sql'Use dynamic import() or set type: 'module' in package.json.
Use import { convert } from 'csv-to-sql'; or import csvToSql from 'csv-to-sql';.Ensure CSV is properly formatted with same number of columns per row.
No dependency data recorded yet.