Neutralize Pesky Miscreants
    Wondering what’s next for npm?Check out our public roadmap! »

    get-sheet

    1.0.4 • Public • Published

    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 :))

    Install

    npm i get-sheet

    DownloadsWeekly Downloads

    0

    Version

    1.0.4

    License

    ISC

    Unpacked Size

    3.59 kB

    Total Files

    3

    Last publish

    Collaborators

    • avatar