Socket
Book a DemoInstallSign in
Socket

google-spreadsheet-stream

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-spreadsheet-stream

Streaming interface for google spreadsheets

latest
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

Streaming API for Google Spreadsheets

NPM version

A very basic streaming API for Google Spreadsheets.

Currently only read-only, supports only public spreadsheets.

Installation

npm install google-spreadsheet-stream

Basic Usage

const GoogleSpreadsheet = require('google-spreadsheet-stream');

const testKey = '0AmBuTbmfT_ZudHBIY1FfbWUzU2pQSjgwX1VON09Gd3c';
const testSheetId = 'od6';

var spreadsheet = new GoogleSpreadsheet(testKey);

spreadsheet.getColumnHeaders(testSheetId)
  .on('data', function(data) {
    console.log('Column Headers: ' + data);
  })
  .on('end', function() {
    var currentRow = 1;
    spreadsheet.getRows(testSheetId)
      .on('data', function(data) {
        console.log('Row ' + currentRow + ': ' + data);
        currentRow++;
      });
  });

TODO

  • Allow authentication for private sheets
  • Add query functionality to getRows()
  • Add write functionality

FAQs

Package last updated on 11 Dec 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts