1.1.3 • Published 6 years ago

@appgeist/get-file-from-url v1.1.3

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

@appgeist/get-file-from-url

NPM version License

Utility function to download a file from a specified URL. Returns a Promise that fulfills with the local file name upon download completion.

Usage

const getFileFromUrl = require("@appgeist/get-file-from-url");

const localFileName = await getFileFromUrl({
  url: "https://example.com/catz-picture.jpg",
  file: "/path/to/local-catz-picture.jpg"
});

console.log(localFileName); // -> "/path/to/local-catz-picture.jpg"

License

The ISC License.

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago