@knotel/gdrive-lib
v0.0.13
Published
Library for building/fetching Google Team Drive metadata in nested JSON format
Downloads
3
Keywords
Readme
gdrive-lib
Library for common Google Drive functionality.
Get Started
yarn add @knotel/gdrive-lib --save
Google Folders
- Recursively generate an n-deep folder structure with files created using existing Google Drive templates.
- Get all
- Add metadata about children length (i.e. file count) (need).
- Add meta data about file size of directory itself (love).
- Hide data concerning user authorized to create files.
- Get
- Update
- Delete
Config Options
- Specify credentials.json.
Google Drive REST API Reference
- https://developers.google.com/drive/api/v3/reference/
Supported MIME Types
- https://developers.google.com/drive/api/v3/mime-types
Getting Started
const GDrive = require('@knotel/gdrive-lib')
gdrive.init() // set auth within internal state of gdrive instance
gdrive.getAll({
rootFolderId: 'XXX'
}).then((files) =>
console.log(files)
)