1.1.0 • Published 11 months ago

@imeshsan2008/mfdl v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago


A simple MediaFire downloader module for Node.js.


Features

  • Extract direct download links from MediaFire URLs.
  • Retrieve file metadata such as:
    • File name
    • Size
    • MIME type
    • And more!

Installation

To install the package, use npm:

npm install @imeshsan2008-mfdl

Example Usage

 const { mfdownload } = require('@imeshsan2008-mfdl');

async function downloadmf(url) {
    console.log(await mfdownload(url));
}

downloadmf('https://www.mediafire.com/file/knnoovz75yk33xp/MediaFire_-_Getting_Started.pdf/file');

Output Example

{ 
  "status": "true ? false"
  "creator": "imeshsan2008",
  "name": "MediaFire-GettingStarted.pdf",
  "size": "1KB",
  "date": "2024-11-27 7:21:32",
  "mimetype": "application/pdf",
  "link": "https://download2439.mediafire.com/kqnkp8qb5doghZGZjDQfjCeUp-tjY0UgDmJA42j0svVMMW4lZ7fb750CGqOJdFO1Kcf5SCWk0VKSl6BgkXi1lOHllHrb/da52toz0dk3dmct/MediaFire%2B-%2BGetting%2BStarted.pdf"
}

Import the mfdownload function in your Node.js script:

const { mfdownload } = require('@imeshsan2008-mfdl');