
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@dtrlanz/sheetable
Advanced tools
Utility for reading & writing tables in Sheets using Google Apps Script
Sheetable
A utility for reading & writing tables in spreadsheets using Google Apps Script
npm install @dtrlanz/sheetable
The following examples assume you are building your project with a bundler that allows you to import modules (e.g., @dtrlanz/gas-bundler).
For an example setup, see the server-side code, client-side HTML, and build script of the included test app.
Import SpreadsheetServer and add the following top-level function to your code:
import { SpreadsheetServer } from "@dtrlanz/sheetable";
function processSpreadsheetRequest(req) {
return new SpreadsheetServer().processRequest(req);
}
If you want to limit client access to a specific spreadsheet, pass that to the SpreadsheetServer constructor:
const spreadsheet = SpreadsheetApp.openByUrl(/* spreadsheet url */);
function processSpreadsheetRequest(req) {
return new SpreadsheetServer(spreadsheet).processRequest(req);
}
Note: As always, if you are using a bundler that performs tree-shaking, you will need to ensure your top-level functions are not eliminated. You can do this by assigning to globalThis:
globalThis.processSpreadsheetRequest = processSpreadsheetRequest;
Import Table and create a class that defines the records in your table. You can then create new table using Table.create() or open a table from an existing spreadsheet using Table.open().
import { Table } from "@dtrlanz/sheetable";
class Person {
firstName = "";
lastName = "";
dob = new Date(0);
}
const people = Table.create(Person);
For further customization, you will probably want to import some decorators as well:
import { Table, title, index } from "@dtrlanz/sheetable";
class Person {
@index
@title("ID")
id = 0;
@title("First name")
firstName = "";
@title("Last name")
lastName = "";
@title("Date of birth")
dob = new Date(0);
}
const people = Table.create(Person);
Google and Google Sheets are trademarks of Google LLC. This project is not endorsed by or affiliated with Google in any way.
Sheetable is released under the MIT license.
FAQs
Utility for reading & writing tables in Sheets using Google Apps Script
We found that @dtrlanz/sheetable demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.