
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@idsync/googledrive-client
Advanced tools
Client for making basic Google Drive requests
Install the client by running the following:
npm install @idsync/googledrive-client
The library exports a factory which can be used to create client adapters. The factory takes a Google Drive OAuth token.
const { createClient } = require("@idsync/googledrive-client");
const client = createClient(myToken);
client.getDirectoryContents({ tree: true }).then(tree => {
// ...
})
// Or return a flat structure with all files and directories:
client.getDirectoryContents();
Make sure to check out the API documentation for more information.
This library uses VError to pass extra error information around, such as when authentication fails while making a request. This makes it easier for downstream libraries to handle such authorisation failures, perhaps by requesting a new token.
If an error is thrown, use VError to extract the information from it to test if an authorisation failure has occurred:
client.getDirectoryContents().catch(err => {
const { authFailure = false } = VError.info(err);
// handle authFailure === true
});
This library supports fetching directory contents by using a path, for a more traditional field. This method is not recommended for all use cases as it doesn't support items in the same level with the same name. Consider it experimental.
const { createClient } = require("@idsync/googledrive-client");
const client = createClient(myToken);
client.mapDirectoryContents("/").then(arrayOfFiles => {
// ...
})
NB: Items are placed in the root if (and only if) their parents are not resolvable. They may have parent IDs specified in the result - if a parent can be found for a file, it is in that items sub-directory, whereas if the parent cannot be found it is in the root.
FAQs
Basic client for Google Drive
The npm package @idsync/googledrive-client receives a total of 1 weekly downloads. As such, @idsync/googledrive-client popularity was classified as not popular.
We found that @idsync/googledrive-client 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.