Skip to content

z4ab/google-sheets-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

google-sheets-js

Node module to read data from google sheets. Note: this only works for public spreadsheets

Use package

  • Clone the repository
  • Run npm link in the directory of the cloned repository
  • Run npm link google-sheets in the directory of your project

Example

var sheets = require('google-sheets')

sheets.getSheetData({
    fileId: "1s4bd_hQSUWK1L2wRJQAYbNyJL6JNqaEEb6JuzVAfgBc",
    gid: "0",
    range: "A1:B3"
}).then(obj => {
    console.log(obj)
})

This code outputs the following:

{ table: [ [ 'Key', 'Value' ], [ 'x', '1' ], [ 'y', '-10' ] ] }

About

Node module to read data from google sheets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published