Naboo's Podracing Misadventure

    @appgeist/get-file-from-url

    1.1.3 • Public • Published

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

    Install

    npm i @appgeist/get-file-from-url

    DownloadsWeekly Downloads

    26

    Version

    1.1.3

    License

    ISC

    Unpacked Size

    3.51 kB

    Total Files

    6

    Last publish

    Collaborators

    • icflorescu