Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var http = require('http')
- var bl = require('bl');
- function funcName(dir){
- http.get(dir, function (response){
- response.pipe(bl(function (err, data){
- if (err){
- console.error(err)
- }
- var realdata = data.toString();
- console.log(realdata)
- }))})
- }
- funcName(process.argv[2]);
- funcName(process.argv[3]);
- function(process.argv[4]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement