
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
bracketscript
Advanced tools
bracketscript is a lightweight scripting language that enables you to perform various operations and automate tasks. It provides a set of functions that can be used to manipulate strings, arrays, files, and perform network requests. With bracketscript, you can create scripts to simplify your workflow and enhance your development process.
You can install bracketscript via npm by running the following command:
npm install bracketscript
To use bracketscript in your project, you need to require the bracketscript module and then you can start writing your scripts using the available functions.
Here's a simple example that demonstrates the usage of bracketscript:
$var[text;${text}];
$var[replace;$replaceText[$get[text];${text};like marmok ❤️]];
$log[$get[replace]];
This script declares two variables, text and replace, and uses the $replaceText function to replace the occurrences of ${text} in the value of text with the string "like marmok ❤️". The result is then logged using the $log function.
You can also make network requests using the $request function. Here's an example:
$request[https://discord.com/api/v9/webhooks/id/token;{
method: 'POST',
data: {
content: 'New request!',
embeds: [{
description: 'bracketscript ❤️, test request'
}]
},
logError: true
}]
This script sends a POST request to a Discord webhook URL and includes a JSON payload with a content field set to "New request!" and an embeds array with a single object containing a description field set to "bracketscript ❤️, test request". The logError option is set to true to log any errors that occur during the request.
You can execute bracketscript scripts by running the following command:
bs index.mk
or
bracketscript index.mk
where index.mk is the name of your bracketscript file.
bracketscript offers a comprehensive collection of functions that enable you to manipulate data, manage control flow, and execute diverse operations. To obtain detailed information about each function and learn how to use them, please consult the documentation.
bracketscript is released under the MIT License. See the LICENSE file for details.
FAQs
A script for working with brackets in Node.js
The npm package bracketscript receives a total of 0 weekly downloads. As such, bracketscript popularity was classified as not popular.
We found that bracketscript demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.