starchup-sheets

Simple helper for posting Starchup errors to Google sheets.

Usage no npm install needed!

<script type="module">
  import starchupSheets from 'https://cdn.skypack.dev/starchup-sheets';
</script>

README

Starchup Sheets

Simple helper for posting Starchup errors to Google sheets.

Installation

npm install starchup-sheets

Required environment vars

export SHEETS_ID="id_of_google_spreadsheet"

export SHEETS_CREDENTIALS="one_line_string_of_downloaded_credentials_file_from_google"

Initialization

var starchupSheets = require('starchup-sheets');
var sheet = new starchupSheets();

Example

....
}).catch(function(e) {
    sheet.postError(e);
});

Error object must have type property that corresponds to title of appropriate worksheet, and should have properties for any applicable headers in the worksheet.