1.0.0 • Published 1 year ago

node-getfile v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

@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);
});
1.0.0

1 year ago