CSV to SQL Script

Installation

npm i csv-to-sql-script

Usage

const writer = require('csv-to-sql-script');

const input = 'mycsv.csv';
const output = 'script.sql';
writer.writeMigration(input, output, 'tableName');