
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
google-drive-io
Advanced tools
Node.js library that makes file access in Google Drive easy.
The official Google Drive API requires fetching of files by their id. This is particular problematic when manipulating files/folders with directory structures (as recursion is often required). This library provides convenience methods that can retrieve / insert files based on their paths.
This library exposes a number of utility methods that aid file IO in Google Drive:
getFolder (folderPath, returnFields, auth)
Attempts to fetch a google drive folder with path specified.
Returns Google Drive file resource object if exists, otherwise err via callback(err, folder).
@param folderPath folder path to search for
@param returnFields fields in Google file resource to return (comma separated)
@param auth OAuth2 client for accessing user's Google Drive
@returns the Google Drive folder resource object
getRootFolder (returnFields, auth)
Attempts to fetch the root directory in google drive.
Returns Google Drive file resource object if exists, otherwise err via callback(err, folder).
@param returnFields fields in Google file resource to return (comma separated)
@param auth OAuth2 client for accessing user's Google Drive
@returns the Google Drive file resource object
getFile(filePath, returnFields, auth)
Attempts to fetch a google drive file with path specified.
Returns Google Drive file resource object if exists, otherwise err via callback(err, folder).
@param filePath file path to search for
@param returnFields fields in Google file resource to return (comma separated)
@param auth OAuth2 client for accessing user's Google Drive
@returns the Google Drive folder resource object
createFolder(folderPath, returnFields, auth)
Creates a google drive folder with path specified.
@param folderPath folder path to search for / create if not exists
@param returnFields fields in Google file resource to return (comma separated)
@param auth OAuth2 client for accessing user's Google Drive
@returns the Google Drive folder resource object
createFolderIfNotExists(folderPath, returnFields, auth)
See documentation for `createFolder`.
uploadFile(filePath, uploadPath, returnFields, auth)
Upload a file to google drive.
@param filePath path to local file object
@param uploadPath path to upload to in Google Drive
@param returnFields fields in Google file resource to return (comma separated)
@param auth OAuth2 client for accessing user's Google Drive
@returns the Google Drive file resource object of the uploaded file
uploadFileIfNotExists(filePath, uploadPath, returnFields, auth)
See documentation for `uploadFile`.
FAQs
Library that makes file access in Google Drive easy
The npm package google-drive-io receives a total of 9 weekly downloads. As such, google-drive-io popularity was classified as not popular.
We found that google-drive-io demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.