New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

node-google-sheets-logger

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-google-sheets-logger

NodeJS module to allow quick and easy data logging to Google Sheets using OAuth credentials

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Node-Google-Sheets-Logger

NodeJS module to allow quick and easy data logging to Google Sheets using OAuth credentials

Installation

npm install node-google-sheets-logger --save

Usage

var GoogleSheetsLogger = require('node-google-sheets-logger');

var googleSheetsLogger = new GoogleSheetsLogger({
    'clientId': '<YOUR-CLIENT-ID>',
    'clientSecret': '<YOUR-CLIENT-SECRET>',
    'fileId': '<YOUR-FILE-ID>',
    'refreshToken': '<YOUR-REFRESH-TOKEN>'
});

googleSheetsLogger.log({
    when: new Date(),
    what: 'Something happened',
    count: 10,
    dataArray: ['A','B','C',1,2,3],
    dataObject: {
        foo: 'bar',
        wat: 'boo'
    }
}).then(function() {
    console.log("The stuff was logged as a new row to your spreadsheet!");
}).catch(function(err) {
    console.log("FAILED WITH ERROR: ", err)
});

Keywords

Google

FAQs

Package last updated on 19 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts