https://github.com/bestikk/bestikk-download
A simple tool to download files from HTTP or HTTPS
https://github.com/bestikk/bestikk-download
build-tool download http https javascript
Last synced: 2 days ago
JSON representation
A simple tool to download files from HTTP or HTTPS
- Host: GitHub
- URL: https://github.com/bestikk/bestikk-download
- Owner: bestikk
- License: mit
- Created: 2016-10-30T11:36:58.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-05-08T16:33:28.000Z (about 5 years ago)
- Last Synced: 2024-04-26T00:08:07.676Z (about 2 years ago)
- Topics: build-tool, download, http, https, javascript
- Language: JavaScript
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
Awesome Lists containing this project
README
# Bestikk Download
ifdef::env-github[]
image:http://img.shields.io/travis/bestikk/bestikk-download.svg[Travis build status, link=https://travis-ci.org/bestikk/bestikk-download]
image:http://img.shields.io/npm/v/bestikk-download.svg[npm version, link=https://www.npmjs.org/package/bestikk-download]
endif::[]
A simple tool to download files from HTTP or HTTPS.
## Install
$ npm i --save-dev bestikk-download
## Usage
```javascript
const Download = require('bestikk-download')
const download = new Download({
followRedirect: true,
maxRedirects: 10
})
download.getContentFromURL('https://www.google.fr', 'index.html')
.then(() => { /* do something */ })
```