New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@ddazal/gsheetreader

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ddazal/gsheetreader

From Google Sheets to JSON

latest
Source
npmnpm
Version
2.2.0
Version published
Maintainers
1
Created
Source

gsheetreader

Transform a public Google Spreadsheet to JSON

Install

From npm:

npm install @ddazal/gsheetreader

As a script tag:

<script src="https://cdn.jsdelivr.net/gh/datasketch/gsheetreader@2/dist/gsheetreader.umd.js"></script>

Usage

const id = 'some-google-sheet-public-id';
const gsr = new GSheetReader();
gsr.getJSON(id).then(console.log);

Alternatively, the function can receive a number as a second parameter to indicate the sheet that will be read. This second parameter defaults to 1.

// This will read the data from the third sheet
const id = 'some-google-sheet-public-id';
const gsr = new GSheetReader();
gsr.getJSON(id, 3).then(console.log);

The getJSON function returns an object with properties data, headers and size.

Roadmap

  • Publish to npm registry
  • Read multiples sheets within the same spreadsheet

FAQs

Package last updated on 25 Nov 2020

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