🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@robinpath/google-sheets

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@robinpath/google-sheets

Google Sheets integration — read, write, append, clear ranges and list sheet metadata. Service-account authentication using a JWT exchange (no user OAuth dance).

latest
npmnpm
Version
0.3.0
Version published
Maintainers
4
Created
Source

@robinpath/google-sheets

Google Sheets module for RobinPath.

Category Functions Auth License

Why use this module?

The google-sheets module lets you:

  • Read values from a spreadsheet range.
  • Append a row of values to a spreadsheet.
  • Clear all values in a spreadsheet range.
  • Create a new Google Spreadsheet.
  • List all sheets/tabs in a spreadsheet.

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

robinpath add @robinpath/google-sheets

Quick Start

1. Set up credentials

googleSheets.setCredentials "ya29.xxx"

2. Read values from a spreadsheet range.

googleSheets.getValues "spreadsheet_id" "Sheet1!A1:C10"

Available Functions

FunctionDescription
google-sheets.setCredentialsSet the OAuth2 access token for Google Sheets API.
google-sheets.getValuesRead values from a spreadsheet range.
google-sheets.setValuesWrite values to a spreadsheet range.
google-sheets.appendRowAppend a row of values to a spreadsheet.
google-sheets.clearRangeClear all values in a spreadsheet range.
google-sheets.createCreate a new Google Spreadsheet.
google-sheets.getSheetsList all sheets/tabs in a spreadsheet.
google-sheets.addSheetAdd a new sheet/tab to a spreadsheet.
google-sheets.deleteSheetDelete a sheet/tab from a spreadsheet.
google-sheets.findRowsFind rows matching a value in a specific column.

Examples

Read values from a spreadsheet range.

googleSheets.getValues "spreadsheet_id" "Sheet1!A1:C10"

Write values to a spreadsheet range.

googleSheets.setValues "spreadsheet_id" "Sheet1!A1:B2" [[1,2],[3,4]]

Append a row of values to a spreadsheet.

googleSheets.appendRow "spreadsheet_id" "Sheet1!A:C" ["Alice", 25, "alice@example.com"]

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/google-sheets";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  googleSheets.setCredentials "ya29.xxx"
  googleSheets.getValues "spreadsheet_id" "Sheet1!A1:C10"
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

License

MIT

Keywords

googlesheets

FAQs

Package last updated on 06 May 2026

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