
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
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
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.