
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
google-drive-spreadsheet
Advanced tools
A library to access Google Drive Spreadsheet API from Node.js https://github.com/bgdavidx/google-drive-spreadsheet
npm install --save google-drive-spreadsheet
Promise version (via Bluebird):
var Spreadsheet = require('google-drive-spreadsheet')
new Spreadsheet(SPREADSHEET_ID).getRowsAsync(1).then(function(rows) {
console.log(rows)
}).catch(function(err) {
console.log('Error', err)
})
Async-Await version (via babel-runtime):
import Spreadsheet from 'google-drive-spreadsheet'
const fn = async () => {
const ss = new Spreadsheet(SPREADSHEET_ID)
try {
const rows = await ss.getRowsAsync(1)
console.log(rows)
} catch (err) {
console.log('Error', err)
}
}
Callback version:
var Spreadsheet = require('google-drive-spreadsheet')
new Spreadsheet(SPREADSHEET_ID).getRows(1, function(err, rows) {
if (err) {
console.log('Error', err)
} else {
console.log(rows)
}
})
Note: Promisified versions also available, omit callback and add async, for example getRows(worksheetId, options, callback)
-> getRowsAsync(worksheetId, options)
returns an array of SpreadsheetRow from the given worksheetId.
example return:
[
{
"_xml": "<entry><id>https://spreadsheets.google.com/feeds/list/1JCqI21cPaw3hn53EC3XdsP_7UacwKxGi5_i472FP-DU/1/public/values/cokwr</id><updated>2015-08-13T07:04:55.399Z</updated><category scheme='http://schemas.google.com/spreadsheets/2006' term='http://schemas.google.com/spreadsheets/2006#list'/><title type='text'>Hello</title><content type='text'>columntwo: world, columnthree: !</content><link rel='self' type='application/atom+xml' href='https://spreadsheets.google.com/feeds/list/1JCqI21cPaw3hn53EC3XdsP_7UacwKxGi5_i472FP-DU/1/public/values/cokwr'/><gsx:columnone>Hello</gsx:columnone><gsx:columntwo>world</gsx:columntwo><gsx:columnthree>!</gsx:columnthree></entry>",
"id": "https://spreadsheets.google.com/feeds/list/1JCqI21cPaw3hn53EC3XdsP_7UacwKxGi5_i472FP-DU/1/public/values/cokwr",
"title": "Hello",
"content": "columntwo: world, columnthree: !",
"_links": [],
"columnone": "Hello",
"columntwo": "world",
"columnthree": "!"
}
]
returns info for each worksheet in the spreadsheet.
adds a row to the worksheet with the given worksheetId.
returns cells from the spreadsheet.
returns rows from the spreadsheet
returns rows from the worksheet.
adds a row to the worksheet.
saves the modified spreadsheet row to the cloud.
deletes the row from the cloud.
updates the value of the cell in the cloud.
saves the cell to the cloud.
deletes the cell from the cloud.
FAQs
API to access Google Drive API from Node.js
The npm package google-drive-spreadsheet receives a total of 0 weekly downloads. As such, google-drive-spreadsheet popularity was classified as not popular.
We found that google-drive-spreadsheet 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.