JSPM

shadowx-fbdl

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q55337F
  • License MIT

Powerful Facebook video downloader - Supports FB, FB Watch, Reels, Shares using ShadowX API

Package Exports

  • shadowx-fbdl
  • shadowx-fbdl/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (shadowx-fbdl) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

shadowx-fbdl

πŸ€–DEV : Mueid Mursalin Rifat

πŸš€ Simple Facebook video downloader - Supports FB, FB Watch, Reels & Shares

πŸ“¦ Install

npm install shadowx-fbdl

πŸš€ Quick Usage

const ShadowXFB = require('shadowx-fbdl');
const fbdl = new ShadowXFB();

// Download Facebook video
fbdl.download('https://fb.watch/abc123/')
  .then(result => {
    console.log('Title:', result.video.title);
    console.log('Download URL:', result.download.url);
  })
  .catch(error => console.log(error.message));

πŸ“‹ Examples

Get video info only

const info = await fbdl.getInfo('https://fb.watch/abc123/');

Get direct download URL

const url = await fbdl.getDownloadUrl('https://fb.watch/abc123/');

Check if URL is valid

if (fbdl.isValidUrl('https://fb.watch/abc123/')) {
  console.log('βœ… Valid Facebook URL');
}

πŸ”— Supported URLs

Β· https://www.facebook.com/watch?v=ID Β· https://fb.watch/ID/ Β· https://www.facebook.com/reel/ID Β· https://www.facebook.com/share/v/ID/

πŸ“€ Response Example

{
  video: {
    title: "Video Title",
    duration: "2:30",
    uploader: "Page Name",
    views: "1.2M"
  },
  download: {
    quality: "HD",
    size: "5.2 MB",
    url: "https://.../video.mp4"
  }
}

βš™οΈ Options

const fbdl = new ShadowXFB({
  timeout: 30000,        // Timeout in ms
  apiKey: 'shadowx'       // API key
});

πŸ“ License

MIT Β©