Skip to content

kvnsuryaa/get-sheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

get-sheet

Get all google spreadsheet datas with get-sheet

Installation

npm install get-sheet

Get All Header

const GoogleSheet = require('get-sheet')
const cred = require('./client_secret.json')

const doc = new GoogleSheet(cred);

let id = '<SPREAD_SHEET_ID>'

let opt = {
  sheet: 'sheet1',
}

doc.header(id, opt)
.then(res => {
  console.log(res)
})

Get All Rows

const GoogleSheet = require('get-sheet')
const cred = require('./client_secret.json')

const doc = new GoogleSheet(cred);

let id = '<SPREAD_SHEET_ID>'

let opt = {
  sheet: 'sheet1',
}

doc.allRows(id, opt)
.then(res => {
  console.log(res)
})

Thank you for using :))

About

Get all google spreadsheet data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published