download-html
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i download-html

Weekly Downloads

1

Version

1.0.1

License

Apache-2.0

Last publish

Collaborators

  • andrevarandas