simple-spreadsheet-reader
A simple reader for a Google spreadsheet publish on web.
See documentation at https://hubjac1.github.io/simple-spreadsheet-reader/
Usage
Install the module from npm with npm install --save simple-spreadsheet-reader
// Initialize the SpreadsheedReader with the speadsheet Id of URL // Load spreadsheed data from google.await spreadsheedReader.loadSpreadsheetData // get one cell valueconsole.log'A1' // text // get list of cellsconsole.logcells // Compute Node elements of the table.// In case of errors the node will contains the error message. document.body.appendtableElement
Result
A B 1 text value 2 other
Publishing your Google Sheets to the web
Step 1:
Click File > Publish to the web…
Step 2:
Click Publish, then OK
Step 3:
Don't use the link from here.
But copy the URL or the spreadsheet ID form the sheet URL
Common Error
If you receive the response below, please go back to Section 2: Publishing your Google Sheets to the web.