
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
@robinpath/google-drive
Advanced tools
Google Drive integration — upload, download, search, copy, move, share, and manage permissions on files and folders. Service-account authentication using a JWT exchange (no user OAuth dance).
Google Drive module for RobinPath.
The google-drive module lets you:
All functions are callable directly from RobinPath scripts with a simple, consistent API.
robinpath add @robinpath/google-drive
1. Set up credentials
googleDrive.setCredentials "ya29.xxx"
2. List files in Google Drive with optional query filter.
googleDrive.listFiles {"q":"mimeType='application/pdf'","pageSize":10}
| Function | Description |
|---|---|
google-drive.setCredentials | Set the OAuth2 access token for Google Drive API. |
google-drive.listFiles | List files in Google Drive with optional query filter. |
google-drive.getFile | Get file metadata by ID. |
google-drive.downloadFile | Download file content as text. |
google-drive.uploadFile | Upload a file to Google Drive. |
google-drive.createFolder | Create a new folder in Google Drive. |
google-drive.deleteFile | Permanently delete a file or folder. |
google-drive.moveFile | Move a file to a different folder. |
google-drive.copyFile | Copy a file, optionally with a new name or destination. |
google-drive.shareFile | Share a file with a user by email. |
googleDrive.listFiles {"q":"mimeType='application/pdf'","pageSize":10}
googleDrive.getFile "file-id"
googleDrive.downloadFile "file-id"
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/google-drive";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
googleDrive.setCredentials "ya29.xxx"
googleDrive.listFiles {"q":"mimeType='application/pdf'","pageSize":10}
`);
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
@robinpath/s3 — Amazon S3 module for complementary functionality@robinpath/dropbox — Dropbox module for complementary functionality@robinpath/box — Box module for complementary functionality@robinpath/onedrive — OneDrive module for complementary functionality@robinpath/json — JSON module for complementary functionalityMIT
FAQs
Google Drive integration — upload, download, search, copy, move, share, and manage permissions on files and folders. Service-account authentication using a JWT exchange (no user OAuth dance).
We found that @robinpath/google-drive demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

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.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.