gdrive-simple
An intuitive and object-oriented wrapper on the Google Drive API. Exposes File and Folder objects which have Promise-based asynchronous functions. Also includes a simple utility for managing signed-in state.
Check out the source code here.
Example usage
; gds; { if !isSignedIn // Show some "Sign in button", call gds.signIn() when that // button is clicked documentonclick = gdssignIn; else // Do whatever you want! Examples: // Get the user's Drive root: const root = gds; // Get your app's private App Data folder: const appdata = gds; // List files in a folder: root; // Get a file by name (creating it if it doesn't exist), and // write some JSON to it: appdata ; // Get a subdirectory, then get a file inside it: appdata ; }
License
gdrive-simple
is licensed under the MIT License. However, Google's JavaScript client library, which this library depends upon, is licensed under an Apache License, so please take care to also comply with the terms for that library.