Skip to content

Commit

Permalink
update: change to ES
Browse files Browse the repository at this point in the history
  • Loading branch information
AsrieltheGoat committed Jan 7, 2025
1 parent 2c0f50a commit adbcbca
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const fetch = require("node-fetch");
import fetch from "node-fetch"; // Using ES module import

function extractVideoId(link) {
const match = link.match(
Expand Down Expand Up @@ -78,6 +78,4 @@ async function facebook(link, lq = false) {
}
}

module.exports = {
facebook,
};
export { facebook }; // Exporting the function using ES module syntax

0 comments on commit adbcbca

Please sign in to comment.