Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Latest commit

 

History

History
44 lines (31 loc) · 914 Bytes

README.md

File metadata and controls

44 lines (31 loc) · 914 Bytes

gdrive-lib

Library for common Google Drive functionality.

Get Started

yarn add @knotel/gdrive-lib --save

Google Folders

  1. Recursively generate an n-deep folder structure with files created using existing Google Drive templates.
  2. 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.
  1. Get
  2. Update
  3. Delete

Config Options

  1. Specify credentials.json.

Google Drive REST API Reference

Supported 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)
)