@ryanforever/sheets

    1.2.3 • Public • Published

    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()
    })

    METHODS

    Keywords

    Install

    npm i @ryanforever/sheets

    DownloadsWeekly Downloads

    13

    Version

    1.2.3

    License

    ISC

    Unpacked Size

    9.48 kB

    Total Files

    7

    Last publish

    Collaborators

    • ryanforever