New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

download-html

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

download-html

A simple way to download html from any website

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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

download

FAQs

Package last updated on 30 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts