UNPKG

hatchyt

Version:
19 lines (15 loc) 470 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = get; // TODO: also add Facebook/Twitter opengraph images. // Stream a file to disk function get() { var d = arguments.length <= 0 || arguments[0] === undefined ? 'http://www.speg.com' : arguments[0]; http.get(d, function (res) { var writey = fs.createWriteStream('out.txt'); res.pipe(writey); }); } //# sourceMappingURL=saveExternal.js.map