
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
The first thing you have to do is to get your API key.
My Account.Regenerate API/CLI Key.Creating an API instance:
import { SquareCloudAPI } from '@squarecloud/api'; // JavaScript: const { SquareCloudAPI } = require('@squarecloud/api')
const api = new SquareCloudAPI('Your API Key');
// 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 collection from the user (Only available if you have access to it)
const application = user.applications.get('Application Id');
// Using the Application ID
const application = await api.getApplication('Application Id');
const application = await api.getApplication('Application Id');
// Returns a bunch of info about the current status of the app
application.getStatus();
const application = await api.getApplication('Application Id');
// If `true` it will get the full logs url
// If `false` or blank it will get only the recent logs string
application.getLogs(true);
const application = await api.getApplication('Application Id');
// Every single method will return `true` if it is successfuly executed
application.start();
application.stop();
application.restart();
const application = await api.getApplication('Application Id');
// Generates a backup and returns its download url
application.backup();
const application = await api.getApplication('Application Id');
// Deletes your whole application
application.delete();
import path from 'path' // JavaScript: const path = require('path')
const application = await api.getApplication('Application Id')
// Commits a file change to your application
// You must use the absolute file path with the file extension
application.commit(path.join(__dirname, 'index.js'))
// You can use Buffers too:
application.commit(<Buffer>, '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.