https://github.com/liddiard/google-sheets-json
NPM package to easily get data from public Google Sheets and format the messy API response in a pretty, usable way.
https://github.com/liddiard/google-sheets-json
Last synced: 12 months ago
JSON representation
NPM package to easily get data from public Google Sheets and format the messy API response in a pretty, usable way.
- Host: GitHub
- URL: https://github.com/liddiard/google-sheets-json
- Owner: liddiard
- Created: 2015-09-02T19:20:20.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-02T19:56:00.000Z (almost 11 years ago)
- Last Synced: 2025-08-03T03:02:08.942Z (12 months ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# google-sheets-json
Get JSON data from public Google Sheets (spreadsheets) and format the data
in an easy-to-consume way.
## Quickstart
Install the package from npm:
```
npm install google-sheets-json
```
Use it in code like this:
```javascript
var Spreadsheet = require('google-sheets-json');
var spreadsheet = new Spreadsheet('my-spreadsheet-id');
spreadsheet.getDefaultWorksheet(function(err, res){
console.log(res); // array of objects
});
spreadsheet.listWorksheets(function(err, res){
console.log(res); // array of worksheet ids on this spreadsheet
});
spreadsheet.getWorksheet('my-worksheet-id', function(err, res){
console.log(res); // array of objects
});
```