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

Library for common Google Drive functionality.

Notifications You must be signed in to change notification settings

knotel/gdrive-lib

Repository files navigation

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