node-getfile

1.0.0 • Public • Published

@arifzyn/getFile!

Installation

npm i --save node-getfile
yarn add --save node-getfile

Example

get file from URL

import { getFile } from 'node-getfile';

await getFile("https://telegra.ph/file/6e7f3baa215174c5ad447.jpg", "./tmp") // path to save
.then(data => {
    console.log('Image', data);
})
.catch(err => {
    console.log('Error', err);
});

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i node-getfile

    Weekly Downloads

    0

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    2.73 kB

    Total Files

    5

    Last publish

    Collaborators

    • arifzyn