JSPM

google-sheets-json

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q23346F
  • License ISC

Get nicely formatted JSON from Google Sheets with support for multiple worksheets.

Package Exports

  • google-sheets-json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (google-sheets-json) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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:

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
});