1.1.3 • Published 5 years ago

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

Weekly downloads
1
License
ISC
Repository
github
Last release
5 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

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago