Skip to content

Generate a Google Drive direct download link based on the URL or ID.

License

Notifications You must be signed in to change notification settings

HarmlessHarm/drive-url

 
 

Repository files navigation

drive-url

Generate a Google Drive direct download link based on the URL or ID.

Install

npm install drive-url

Usage

import driveUrl from 'drive-url';

driveUrl('https://drive.google.com/file/d/1Px8bePd7pFSz5r6bTA7GKN9HloCzMfFk/view?usp=sharing');
//=> 'https://drive.google.com/uc?export=download&id=1Px8bePd7pFSz5r6bTA7GKN9HloCzMfFk'

API

driveURL(urlOrId, apiKey?)

urlOrId

Type: string

The url or id of the drive content.

apiKey

Type: string

A drive api key that can be used to exceed the download limit of 100MB.

About

Generate a Google Drive direct download link based on the URL or ID.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 84.7%
  • TypeScript 15.3%