Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@guidb/google-sheets
Advanced tools
getAll(range_name)
exampleconst { googleSheets } = require("@guidb/google-sheets")
async function test() {
var db = new googleSheets("your_sheet_id", "credentials.json")
var range_name = "Sheet1!A2:Z";
var data = await db.getAll(range_name)
console.log(JSON.stringify(data, null, 2))
}
test()
//--! Result log here !--\\
/*
[
[
"12345",
"azkadev",
"azka"
],
[
"123456",
"devano",
"devan",
"alaska"
],
[
"1234567",
"",
"farel",
"farel"
]
]
*/
db.getRow(range_name, user_data, get_row_num, return_row_number)
exampleconst { googleSheets } = require("@guidb/google-sheets")
async function test() {
var db = new googleSheets("your_sheet_id", "credentials.json")
var range_name = "Sheet1!A2:Z"; //--! fil your range_name !--\\
var user_data = "12345" //--! fill find data !--\\
var get_row_num = 0 //--! the data is 0 because it is in range a, if b is 1 and next !!--\\
var return_row_num = 1 //--! retur row b if you want c fill 2 next... !--\\
var data = await db.getRow(range_name,user_data, get_row_num, return_row_num)
console.log(JSON.stringify(data, null, 2))
}
test()
//--! Result log here !--\\
/*
"azkadev"
*/
getRows(range_name, user_data, get_row_num)
exampleconst { googleSheets } = require("@guidb/google-sheets")
async function test() {
var db = new googleSheets("your_sheet_id", "credentials.json")
var range_name = "Sheet1!A2:Z";
var user_data = "12345"
var get_row_num = 0
var data = await db.getRows(range_name,user_data, get_row_num)
console.log(JSON.stringify(data, null, 2))
console.log(JSON.stringify(data, null, 2))
}
test()
//--! Result log here !--\\
/*
{
"0": "12345",
"1": "azkadev",
"2": "azka"
}
*/
Before
After
save(range_name, user_data, array_save, array_update, range_name_update)
exampleconst { googleSheets } = require("@guidb/google-sheets")
async function test() {
var db = new googleSheets("your_sheet_id", "credentials.json")
var array_save = [ "data1", "data 2", "data 3" ]
var array_update = [ "data1", "data 2 update", " data 3", "new data" ]
var range_name = "Sheet1!A2:Z";
var range_name_update = "Sheet1!A:Z"
var data = await db.save(range_name, array_save[0], array_save, array_update, range_name_update)
console.log(JSON.stringify(data, null, 2))
}
test()
//--! Result log here !--\\
/*
true
*/
Before
After
saveRow(range_name, user_data, get_row_num, new_data, range_name0)
exampleconst { googleSheets } = require("@guidb/google-sheets")
async function test() {
var db = new googleSheets("your_sheet_id", "credentials.json")
var range_name = "Sheet1!A2:Z";
var range_name_update = "Sheet1!A:Z"
var data = await db.saveRow(range_name, 123456, 0, "gibran", "Sheet1!C")
console.log(JSON.stringify(data, null, 2))
}
test()
//--! Result log here !--\\
/*
*/
Before
After
saveRows(range_name, user_data, get_row_num, new_data_array, range_name_update, range_name_update0)
exampleconst { googleSheets } = require("@guidb/google-sheets")
async function test() {
var db = new googleSheets("your_sheet_id", "credentials.json")
var range_name = "Sheet1!A2:Z";
var data = await db.getRow(range_name, user_data, get_row_num, return_row_number)
console.log(JSON.stringify(data, null, 2))
}
test()
//--! Result log here !--\\
/*
*/
A list that i should do more for this project...
FAQs
Google Sheets Api (V4) library crud database
We found that @guidb/google-sheets 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.