1.0.0 • Published 1 year ago

dl-file-from-url v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

What is this?

A method used to download files from a given URL and save them with a given name onto your device. Works with all modern and legacy browsers.

Installation

Run npm i download-file-from-url

Usage

import downloadFileFromUrl from "download-file-from-url";

const fileUrl = "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf";

const fileName = "My Book"

downloadFileFromUrl(fileUrl, fileName)

Parameters

There are two parameters that are accepted which are the filePath and fileName, which are empty by default.