Skip to content

Instantly share code, notes, and snippets.

View bymustfa's full-sized avatar
💻
Coding 💻

Mustafa ÖZTÜRK bymustfa

💻
Coding 💻
View GitHub Profile
@ozcanzaferayan
ozcanzaferayan / index.js
Created March 11, 2021 22:56
Tails a file that served on specified URL.
var http = require('http');
var fs = require('fs');
var path = require('path');
const URL = "http://blabla/server.log";
const FILE = "server.log";
var download = function(url, dest, cb) {
var file = fs.createWriteStream(path.join(__dirname, dest));
http.get(url, function(response) {