Skip to content

Utility function to download a file from a specified URL

License

Notifications You must be signed in to change notification settings

appgeist/get-file-from-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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.

About

Utility function to download a file from a specified URL

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published