@ryanforever/sheets
v1.2.3
Published
google sheets API
Downloads
2
Readme
google-sheet
uses google-spreadsheet
usage
const Sheet = require("@ryanforever/sheets")
const sheet = new Sheet({
sheetid: process.env.GOOGLE_SHEET_ID
})
getting data from a sheet
// returns all data from that sheet
sheet.get("sheet1").then(rows => {
console.log(rows)
})
saving rows
sheet.get("sheet1").then(rows => {
let row = row.find(x => x.username == "johnsmith")
row.verified = true
row.save()
})