Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
macrocompile
Advanced tools
Compile a macromod script and its dependencies into one large inlined script
A command line tool to automatically "recompile" macromod scripts when a change in any script dependency is detected. By "compile" we refer to the process of recursive inline-replacement of dependent scripts, removal of comments and whitespace, and the obfuscation of variable names.
Using npm:
npm i macrocompile -g
From command line:
macrocompile
Or:
macrocompile -i
To only run compilation for the specified scripts once, not watching for file changes.
You must configure the file %node_path%/npm_modules/macrocompile/config.json before running. It comes with a default set of options:
Option | Default | Description |
---|---|---|
removeWhitespace | true | Controls whether whitespace is removed |
obfuscate | true | Whether variables are renamed to shorter forms |
blockFormat | true | Puts multiple statements on one line, up to a maximum width |
maxWidth | 70 | Maximum width of each combined line, except for original long lines |
As well, the scripts you wish to compile, as well as their compiled-version name, must be specified as an array of objects, and a path to your scripts folder:
"scriptsFolder":
"C:\\Users\\YOUR USERNAME HERE\\AppData\\Roaming\\.minecraft\\liteconfig\\common\\macros\\",
"scripts": [
{
"name": "digBot_source.txt",
"compiledName": "digBot.txt"
},
{
"name": "fooBot_source.txt",
"compiledName": "fooBot.txt"
}
],
Beyond a certain level of nesting, macromod scripts develop strange bugs that arise from the script runtime agent itself. To prevent this, the script is compiled into one large file that has no external dependencies.
FAQs
Compile a macromod script and its dependencies into one large inlined script
We found that macrocompile 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.