Skip to content

Instantly share code, notes, and snippets.

View kushalpandya's full-sized avatar
🦊
GitLabbin'

Kushal Pandya kushalpandya

🦊
GitLabbin'
View GitHub Profile
@kushalpandya
kushalpandya / parsqlres.js
Created May 17, 2018 08:36
SQL data JSON to JSON or CSV converter
const fs = require('fs');
// Get CLI params
const sqlJsonPath = process.argv[2];
const outputType = process.argv[3];
const outputFilePath = process.argv[4];
// Show generic CLI syntax error with usage
const showCommandError = () => {
console.log(`