Reformat all files with prettier

This commit is contained in:
Pieter Vander Vennet 2022-09-08 21:40:48 +02:00
parent e22d189376
commit b541d3eab4
382 changed files with 50893 additions and 35566 deletions

View file

@ -1,12 +1,12 @@
const http = require('https');
const fs = require('fs');
const http = require("https")
const fs = require("fs")
// Could use yargs to have more validation but wanted to keep it simple
const args = process.argv.slice(2);
const FILE_URL = args[0];
const DESTINATION = args[1];
const args = process.argv.slice(2)
const FILE_URL = args[0]
const DESTINATION = args[1]
console.log(`Downloading ${FILE_URL} to ${DESTINATION}`)
const file = fs.createWriteStream(DESTINATION);
http.get(FILE_URL, response => response.pipe(file));
const file = fs.createWriteStream(DESTINATION)
http.get(FILE_URL, (response) => response.pipe(file))