UNPKG

aetherz-uploader

Version:

A simple any file hosting uploader for node.js

10 lines (8 loc) 323 B
import axios from "axios"; import { ErhabotUploader } from "./src/index.js"; let video = "https://cdn.videy.co/eawVNAOu1.mp4", image = "https://telegra.ph/file/3838948e59859e543df1d.jpg" const eg = (await axios.get(image, { responseType: "arraybuffer" })).data; ErhabotUploader(eg).then(console.log).catch(console.log)