Skip to content

Instantly share code, notes, and snippets.

View alexander-fenster's full-sized avatar

Alexander Fenster alexander-fenster

View GitHub Profile
@alexander-fenster
alexander-fenster / drive-sample.js
Created June 25, 2019 21:41
drive-sample.js: create and update a file on Google Drive in Node.js
// Sample Node.js code to create and update the file on Google Drive.
// Pre-requisites:
// 1. Install Node.js
// 2. $ npm install express open googleapis
// 3. Put the JSON API key into ./key.json
// Usage:
// node drive-sample.js
const express = require('express');
const open = require('open');