Library for common Google Drive functionality.
yarn add @knotel/gdrive-lib --save
- 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
- Specify credentials.json.
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)
)