I want to read in several files (index.html, style.css, main.js) to create a JSON payload for upload.
I know with nodejs, I can begin to create what I want like so:
var fs = require('fs');
fs.readFile('index.html', 'utf8', function (err, data) {
if (err) throw err;
out = JSON.stringify({"html": data});
console.log(out);
});
Though how do I do that with jq?