Fetch a URL and save a copy of the source to a local file
With yarn:
$ yarn add html-fax
With npm:
$ npm install --save html-fax
const htmlFax = require('html-fax');
htmlFax('https://npmjs.com', './index.html');
html-fax
exposes one function that takes two arguments, a URL and file to write the response to.
URLs can be either http
or https
.