Skip to content

Function: Spreadsheet() ​

Spreadsheet(sheetsId, globalOptions): TSpreadsheet

Define a spreadsheet corresponded to a Google Sheets document.

Parameters ​

ParameterTypeDescription
sheetsIdstringGoogle Sheets ID can be found from the URL docs.google.com/spreadsheets/d/{sheetsId}/
globalOptionsSheetOptionsSheetOptions which will be applied in every .get call

Returns ​

TSpreadsheet

A spreadsheet object

Example ​

ts
const sheets = Spreadsheet('google-sheets-id');

Defined in ​

src/parser/spreadsheet.ts:70

Released under the MIT License.