drive-url
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.1
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.1
    3
  • 2.0.0
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i drive-url

Weekly Downloads

3

Version

2.0.1

License

MIT

Unpacked Size

3.77 kB

Total Files

5

Last publish

Collaborators

  • richienb