1.0.0 • Published 3 years ago

google-sheets-parser v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Google Sheets Parser

Parses Google sheets and returns data in a structured JavaScript array.

npm npm CircleCI Maintenance

Installation

Yarn

$ yarn add google-sheets-parser

NPM

$ npm install google-sheets-parser

Usage

CommonJS require

const GoogleSheetsParser = require('google-sheets-parser').default;

const parser = new GoogleSheetsParser(
    spreadsheetId,
    sheetName,
    oauthCredentials,
);

// This must be in an async function
const data = await parser.parse();

console.log(data);

ES6 import

import GoogleSheetsParser from 'google-sheets-parser';

const parser = new GoogleSheetsParser(
    spreadsheetId,
    sheetName,
    oauthCredentials,
);

// This must be in an async function
const data = await parser.parse();

console.log(data);