10000 GitHub - Abdo30004/Drive-Client: simple google drive client
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Abdo30004/Drive-Client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drive Client V2

Introduction

This is a simple client for Google Drive.It gets the list of files and folders in the root directory of the drive and also downloads the files from the drive to the local directory with the same directory structure.

Usage

import { DriveClient } from "drive-client";
import credentials from "./credentials.json"; // Google Drive API credentials (or use fs to read the file)

async function main() {
  const client = new DriveClient(credentials);
  await client.authorize();
  const fileId = "fileId";

  let file = await client.getFileInfo(fileId);
  if (!file) return;

  console.log("File: ", file.name);
}

main();

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

simple google drive client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0