Google Drive Direct Link Generator
npm install gdurl
const googleDrive = require("gdurl");
async function test() {
const docId = "drive-id";
const result = await googleDrive.getMediaLink(docId);
console.log(result);
}
test();
Q : How to get drive id ?
A : you can get drive id by looking the url example :
https://drive.google.com/file/d/13xUgzPgKHvXO4JQF7Nyadci7g3Bpjbgx/view
this is 13xUgzPgKHvXO4JQF7Nyadci7g3Bpjbgx
the drive id