
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
@squarecloud/api
Advanced tools
$ npm install @squarecloud/api
First create an instance for the API:
const { SquareCloudAPI } = require('@squarecloud/api');
const api = new SquareCloudAPI('Your API Token');
Get your token at My Account in the SquareCloud Dashboard.
// If the ID is not provided it will get your own informations
const user = await api.getUser('User Discord ID');
// To get private properties you have to check if you have access:
if (user.hasAccess()) {
console.log(user.applications);
}
There are two ways for getting applications.
const user = await api.getUser();
// Through the array from the user (Only available if you have access to it)
const application = user.applications[0];
// Using the Application ID
const application = await api.getApplication('ID');
const application = await api.getApplication('ID');
// Returns a bunch of info about the current status of the app
console.log(await application.getStatus());
const application = await api.getApplication('ID');
// If `true` it will get the full logs url
// If `false` or blank it will get only the recent logs string
console.log(await application.getLogs(true));
const application = await api.getApplication('ID');
// Every single method will return `true` if it is successfuly executed
await application.start();
await application.stop();
await application.restart();
const application = await api.getApplication('ID');
// Generates a backup and returns its download url
console.log(await application.backup());
const application = await api.getApplication('ID');
// Deletes your whole application
console.log(await application.delete());
import path from 'path'; // JavaScript: const path = require('path')
const application = await api.getApplication('ID');
// Commits a file change to your application
// You must use the absolute file path with the file extension
console.log(await application.commit(path.join(__dirname, 'index.js')));
FAQs
A NodeJS wrapper for Square Cloud API
The npm package @squarecloud/api receives a total of 525 weekly downloads. As such, @squarecloud/api popularity was classified as not popular.
We found that @squarecloud/api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.