Add Prettier

This commit is contained in:
Gregory Schier
2018-06-25 13:42:50 -04:00
parent 0ad7607ac3
commit 4901f03041
467 changed files with 16125 additions and 12289 deletions

View File

@@ -1,21 +1,21 @@
var http = require("https");
var http = require('https');
var options = {
"method": "GET",
"hostname": "mockbin.com",
"port": null,
"path": "/har",
"headers": {}
method: 'GET',
hostname: 'mockbin.com',
port: null,
path: '/har',
headers: {}
};
var req = http.request(options, function (res) {
var req = http.request(options, function(res) {
var chunks = [];
res.on("data", function (chunk) {
res.on('data', function(chunk) {
chunks.push(chunk);
});
res.on("end", function () {
res.on('end', function() {
var body = Buffer.concat(chunks);
console.log(body.toString());
});