Narcissistic Passion Minified
Have ideas to improve npm?Join in the discussion! »

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

1.0.0 • Public • Published

Drive URL Travis CI Build Status

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

NPM Badge

Install

npm install drive-url

Usage

const driveURL = require("drive-url");
 
driveURL("https://drive.google.com/file/d/1Px8bePd7pFSz5r6bTA7GKN9HloCzMfFk/view?usp=sharing");
//=> 'https://drive.google.com/uc?export=download&id=1Px8bePd7pFSz5r6bTA7GKN9HloCzMfFk'

API

driveURL(url, apiKey?)

url

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.

Install

npm i drive-url

DownloadsWeekly Downloads

12

Version

1.0.0

License

MIT

Unpacked Size

4.07 kB

Total Files

6

Last publish

Collaborators

  • avatar