Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
edit-google-spreadsheet
Advanced tools
Currently, there are about 3 different node modules which allow you to read data off Google Spreadsheets, though none with a good write API. Enter `edit-google-spreadsheet`. A simple API for editting Google Spreadsheets.
Currently, there are about 3 different node modules which allow you to read data off Google Spreadsheets, though none with a good write API. Enter edit-google-spreadsheet
. A simple API for editting Google Spreadsheets.
npm install edit-google-spreadsheet
Create sheet:
var Spreadsheet = require('edit-google-spreadsheet');
Spreadsheet.create({
//auth
username: '...',
password: '...',
spreadsheetId: '...',
//summary tab
worksheetId: '...',
callback: function(err, spreadsheet) {
if(err) throw err;
sheetReady(spreadsheet);
}
});
Update sheet:
function sheetReady(spreadsheet) {
spreadsheet.add({ 3: { 5: "hello!" } });
spreadsheet.send(function(err) {
if(err) throw err;
console.log("Updated Cell at row 3, column 5 to "hello!");
});
}
Batch edit:
spreadsheet.add([[1,2,3],
[4,5,6]]);
Batch edit starting from row 5:
spreadsheet.add({
5: [[1,2,3],
[4,5,6]]
});
Batch edit starting from row 5, column 7:
spreadsheet.add({
5: {
7: [[1,2,3],
[4,5,6]]
}
});
Named cell references:
spreadsheet.add({
3: {
4: { name: "a", val: 42 },
5: { name: "b", val: 21 },
6: "={{ a }}+{{ b }}" //forumla with =D3+D5
}
});
Note: cell a
and b
are looked up on send()
#####spreadsheet.add( obj | array )
Add cells to the batch. See examples.
#####spreadsheet.send( callback )
Sends off the batch of add
ed cells. Clears all cells once complete. Callback has signature: funciton(err, result) {}
.
Thanks to googleclientlogin
for easy Google API ClientLogin Tokens
FAQs
> A simple API for reading and writing Google Spreadsheets in Node.js
The npm package edit-google-spreadsheet receives a total of 720 weekly downloads. As such, edit-google-spreadsheet popularity was classified as not popular.
We found that edit-google-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.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.