node-getfile
v1.0.0
Published
getFile from url (buffer)
Downloads
1
Readme
@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);
});