1.0.1 • Published 7 years ago

download-html v1.0.1

Weekly downloads
16
License
Apache-2.0
Repository
github
Last release
7 years ago

Download Html

⚡️ Simple, basic, unecessary util to fetch html from any website.

Why?

Learning purposes. Just messing around and using typescript to create a npm package.

Usage:

  • $ npm install --save download-html
import downloadHtml from 'download-html';

downloadHtml('http://google.com')
  .then(result => console.log(result)); // This result object contains multiple properties, some are listed above

Download-Html Return value

Returns an object containing multiple properties such as:

  • status
  • headers
  • data (contains the html for the page)

License

License - Apache 2.0 - André Varandas