drive-downloadable-link
v1.0.7
Published
A utility to generate direct downloadable links from Google Drive shareable links.
Downloads
37
Maintainers
Readme
Google Drive Downloadable Link
Effortlessly generate direct downloadable links from Google Drive shareable links.
Installation
Install the package using npm:
npm install drive-downloadable-link
Usage
Convert Google Drive shareable links into direct downloadable links in just a few steps:
- Import the
getDownloadableLink
function. - Provide a Google Drive shareable link as an argument.
- Get a direct downloadable link for easy file downloads.
Example:
import { getDownloadableLink } from "drive-downloadable-link";
const googleDriveShareableLink =
"https://drive.google.com/file/d/1mji3dJdO_yOjcg7mlhmSBOf2rwM7XJ5h/view?usp=sharing";
const directDownloadLink = getDownloadableLink(googleDriveShareableLink);
console.log("Direct Downloadable Link:", directDownloadLink);
Note: Ensure the link provided is in the format https://drive.google.com/file/d/...
.
License
This project is licensed under the ISC License.
Issues and Contributions
Found a bug or have a question? Open an issue on GitHub and let's discuss.
If you're interested in contributing, we welcome your pull requests! Check out our contribution guidelines for more information.