0.1.0 • Published 6 years ago

gs-wrapper v0.1.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
6 years ago

Google Sheets Wrapper

yarn add f12-google-sheets

This project requires a Google Cloud Service Account credentials file.

Usage

Get all rows

import GoogleSheets from 'f12-google-sheets'

const gs = new GoogleSheets({
  credentialsPath: path.join(__dirname, '../../credentials.json'), // Path to the Google Cloud service account credentials file
  spreadsheetId: 'abcde' // Id of the google sheet
})

const rows = await gs.getAll()