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 Β©