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.
flatsheet-api-client
Advanced tools
JavaScript/node API client for http://github.com/flatsheet/flatsheet
Create, update, and destroy methods.
npm install --save flatsheet-api-client
var Flatsheet = require('flatsheet-api-client');
var flatsheet = new Flatsheet();
/* list of sheets */
flatsheet.sheets.list(function(err, res){
console.log(err, res)
});
/* specific sheet */
flatsheet.sheets.get(sheetID, function (err, res){
console.log(err, res);
});
var Flatsheet = require('flatsheet-api-client');
var flatsheet = new Flatsheet({
host: 'https://app.flatsheet.io',
token: 'YOUR_API_KEY'
});
The host
argument is optional, only use it if you aren't using the hosted version of Flatsheet.
The token
argument is not needed for GET requests, only for PUT, POST, and DELETE requests.
flatsheet.sheets.list(function(err, res){
console.log(err, res)
});
flatsheet.sheets.get(sheetID, function (err, res){
console.log(err, res);
});
/* Set sheet properties */
var sheet = {
name: 'pizza sheet!',
description: 'womp womp womp',
rows: [
{
pizza: 'pizza is really awesome!'
}
],
}
/* create a new sheet */
flatsheet.sheets.create(sheet, function(err, res){
console.log(err, res)
});
flatsheet.sheets.get(sheetID, function (err, res) {
res.name = 'change the name of the sheet to this';
flatsheet.sheets.update(res, function (err, res) {
console.log(err, res)
});
});
var row = { pizza: 'wooaaaadddddaaaaoooo' };
flatsheet.sheets.addRow(sheetID, row, function (err, res) {
console.log(err, res);
});
flatsheet.sheets.delete(sheetID, function () {
flatsheet.sheets.get(sheetID, function (err, res) {
console.log(err) /* { error: 404 } */
});
});
npm install
npm test
Tests are currently located in the test.js file.
FAQs
javascript client for flatsheet
The npm package flatsheet-api-client receives a total of 1 weekly downloads. As such, flatsheet-api-client popularity was classified as not popular.
We found that flatsheet-api-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.