temporary-uploader

1.0.2 • Public • Published

◉ TEMPORARY MEDIA UPLOADER ◉

Hello ! You Can Upload Photos , Videos and Any other files Using This And Can You Get Direct Link For it

⬇️ Install Package

npm i temporary-uploader

ℹ️ Example

const { upload } = require("temporary-uploader");
const fs = require("fs");

async function uploadTest(){
  const fileBuffer = await fs.readFileSync('./media/nima.jpg'); // your file path
  const result = await upload(fileBuffer);

  console.log(result);
}

uploadTest();

✅ Result

{
  status: true,
  message: 'File uploaded successfully',
  url: 'https://temp-uploader.onrender.com/files/JAvNpGnspq.jpg',
  fileSize: {
    bytes: 60437,
    kilobytes: '59.02',
    megabytes: '0.06',
    gigabytes: '0.00'
  }
}


👨‍💻 Author : Mr Nima

/temporary-uploader/

    Package Sidebar

    Install

    npm i temporary-uploader

    Weekly Downloads

    1

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    392 kB

    Total Files

    6

    Last publish

    Collaborators

    • mr-nima