//var googleSearch = notebook("tolmasky/google-image-search/3.0.0");
//var cheerio = require('cheerio');
//var got = require("got");
async function psarcToTab(api_url, psarc_path)
{
var Promise = require("bluebird")
var execAsync = Promise.promisify(require('child_process').exec);
var args = " -X POST -H 'Content-Type: multipart/form-data' -F d=255"
args = args + " -F psarc=@"+psarc_path;
outfile = "/tmp/psarc2gp5."+Date.now()+".gp5";
args = args + " -o "+outfile;
args = args + " " + api_url;
return await execAsync("curl "+args);
}
module.exports = psarcToTab;