Informações
Module designed to support Square Cloud activities.
Install
npm install @squarecloud/utils
const { Status: { ram, ramTotal, ramUsed } } = require("@squarecloud/utils");
const { Terminal: { info, warn, error, success, debug } } = require("@squarecloud/utils");
error("Example error message :think:");
const { Registry: { add, del, check } } = require("@squarecloud/utils");
add("Hello log", "log.txt");
add("Another message in same log", "log.txt");
add("Another timeZone?", "US_Logs.txt", "US/Central");
del("US_Logs.txt");
if (check("US_Logs.txt")) {
console.log("US_Logs exists!");
}
const { webhook, apply, prototypes } = require("@squarecloud/utils");
webhook("hi friend", "https://discord......");
webhook({ content: "example object webhook" }, "https://discord......");
apply(() => { console.log(USER) }, "log.txt");
Example save in log.txt:
00/00/0000 00:00:00 -> ReferenceError: USER is not defined
prototypes();
"potato".capitalize -> "Potato";
[1, 2, 3, 4, 5].random() -> 3
LICENSE
This project is licensed under the Apache License 2.0