npm.io
1.0.7 • Published 3 years ago

drive-downloadable-link

Licence
ISC
Version
1.0.7
Deps
0
Size
3 kB
Vulns
0
Weekly
0

npm version

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:

  1. Import the getDownloadableLink function.
  2. Provide a Google Drive shareable link as an argument.
  3. 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.

Keywords