npm.io
1.0.1 • Published 9 years ago

download-html

Licence
Apache-2.0
Version
1.0.1
Deps
2
Vulns
25
Weekly
0

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

Keywords