Socket
Book a DemoInstallSign in
Socket

google-drive-downloader

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-drive-downloader

Lists and downloads files from google drive

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

google-drive-downloader

Lists and downloads files from google drive. It can easily filter files on date and find a specific sub-folder to iterate through.

Node 4+ only

0.2+ runs on Node 4+ only. It can run on older Node.js through Babel.

As an alternative, install the 0.1 version range. It functions on older versions of Node.

Auth setup

You can find info on creating credentials at the github page for googleauth, the module handling the auth-stuff.

Usage

export GOOGLEAUTH_CLIENT=<api key>.apps.googleusercontent.com
export GOOGLEAUTH_SECRET=<secret key>

google-drive-downloader <command>

If the program is run without a command or with an invalid command, it will show a help-message. This can also be shown by adding --help, which will also show the available options for individual commands (eg. google-drive-downloader list-files --help)

Available commands

ls

... ls <path> [options...]

The path parameter is the path for which to list files. To list the files in the root folder, run google-drive-downloader ls /.

The path-matching is case-sensitive.

Available options

  • --modified-after / -m: json date, it will only return files modified after this date.

get-all

... get-all <path> [options...]

The path parameter is the path for which to download files. To download the files in the root folder, run google-drive-downloader ls /.

Available options

  • --modified-after / -m: json date, it will only return files modified after this date.
  • --output-dir / -o: The folder to download to. The default is the current folder.

Keywords

google

FAQs

Package last updated on 11 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts