
Security News
Security Community Slams MIT-linked Report Claiming AI Powers 80% of Ransomware
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.
@avocode/monroe-cli
Advanced tools
JavaScript package wrapping native binaries of Avocode Monroe rendering engine CLI.
When included as a NPM dependency, based on configuraton the package automatically downloads all the binaries and installs them to bin/ directory.
TODO
The interface of the package is yet to be specified, but the sample use shows how to get the CLI executable path, how to check the binary and how to run custom command processor.
import { check, spawn_cli } from 'monroe-cli/lib.js'
import { get_exec_path } from 'monroe-cli/config.js'
// just get the exec path
console.log("rendering exec path:", get_exec_path());
// ---------------------------------------------------------------------------
// check the if the executable works
await check()
    .then(output => console.log(`output: ${output}`))
    .catch(err_code => console.log(`error: ${err_code}`))
// ---------------------------------------------------------------------------
// run custom command processor
async function run() {
    return new Promise((resolve, reject) => {
        const exec = get_exec_path()
        const cmd = spawn_cli(exec)
        let output = ""
        cmd.stdout.on('data', (data) => {
            output += String(data)
        });
        cmd.stderr.on('data', (data) => {
            output += String(data)
        });
        cmd.on('close', (code) => {
            if (!code) {
                resolve(output);
            } else {
                reject(code);
            }
        });
        cmd.stdin.write("quit;\n");
        cmd.stdin.end();
    });
}
await run()
    .then(output => console.log(`output: ${output}`))
    .catch(err_code => console.log(`error: ${err_code}`))
// ---------------------------------------------------------------------------
The package configuration is modified via several parameters, which can be set
using environtment variables, .npmrc file or package.json's config field
(in that order of precedence).
In the following list, the value represents a name of the environtment variable, its lowercase version can be
used in package.json or .npmrc
If a parameter isn't set explicitly the default value derived from the host system is used.
MONROE_CLI_VERSIONVersion of the rendering the CLI is derived from, either semver, git commit ID or latest (for development).
default: latest
MONROE_CLI_TARGETTarget triple describing a platform and architecture of the desired build.
Available targets:
x86_64-pc-linux-gnu GLIBC based Linux,x86_64-pc-linux-musl, system based on musl standard C library (e.g Alpine Linux)x86_64-darwin-apple x86 macOS,x86_64-pc-windows MSVC based Windowsdefault:
x86_64-pc-linux-gnu (Linux)x86_64-darwin-apple (macOS)x86_64-pc-windows (Windows)MONROE_CLI_GL_PROVIDERSpecifies OpenGL system interface.
native - WGL for Windows, CGL for macOS (Linux needs to set either glx or osmesa)glx - (Linux only) X Window based OpenGL, allows hardware acceleration.osmesa - (Linux only) Mesa3D sofware implemetaion of OpenGL in off-screen buffer (doesn't require X11 or any other windowowing system)default:
glx (linux)native (macOS)native (Windows)MONROE_CLI_INSTALL_DEPSBoolean flag determining whether all the dependencies are to be dowloaded along with the binary.
For macOS and Windows no explicit dependencies are needed, only working installation of the host system.
TODO: link docs how to install dependecies in specific systems
default: false
MONROE_CLI_URL_BASEURL prefix representing root of the releases tree.
default: https://avocode-rendering-test.s3.amazonaws.com/releases
Preview of the releases to tree to show its structure (actual data might difer).
releases/
βββ latest
βΒ Β  βββ x86_64-apple-darwin
βΒ Β  βΒ Β  βββ opengl_native
βΒ Β  βΒ Β      βββ monroe-cli
βΒ Β  βββ x86_64-pc-linux-musl
βΒ Β  βΒ Β  βββ opengl_osmesa
βΒ Β  βΒ Β      βββ libs
βΒ Β  βΒ Β          βββ ld-musl-x86_64.so.1
βΒ Β  βΒ Β          βββ libffi.so.7
βΒ Β  βΒ Β          βββ libgcc_s.so.1
βΒ Β  βΒ Β          βββ libglapi.so.0
βΒ Β  βΒ Β          βββ libLLVM-10.so
βΒ Β  βΒ Β          βββ liblzma.so.5
βΒ Β  βΒ Β          βββ libOSMesa.so.8
βΒ Β  βΒ Β          βββ libstdc++.so.6
βΒ Β  βΒ Β          βββ libxml2.so.2
βΒ Β  βΒ Β          βββ libz.so.1
βΒ Β  βΒ Β          βββ libzstd.so.1
βΒ Β  βββ x86_64-pc-linux-gnu
βΒ Β  βΒ Β  βββ opengl_glx
βΒ Β  βΒ Β  βΒ Β  βββ libs
βΒ Β  βΒ Β  βΒ Β      βββ ...
βΒ Β  βΒ Β  βββ opengl_osmesa
βΒ Β  βΒ Β      βββ libs
βΒ Β  βΒ Β      βΒ Β  βββ ld-linux-x86-64.so.2
βΒ Β  βΒ Β      βΒ Β  βββ libc.so.6
βΒ Β  βΒ Β      βΒ Β  βββ libdl.so.2
βΒ Β  βΒ Β      βΒ Β  βββ libedit.so.0
βΒ Β  βΒ Β      βΒ Β  βββ libffi.so.7
βΒ Β  βΒ Β      βΒ Β  βββ libgcc_s.so.1
βΒ Β  βΒ Β      βΒ Β  βββ libglapi.so.0
βΒ Β  βΒ Β      βΒ Β  βββ libicudata.so.68
βΒ Β  βΒ Β      βΒ Β  βββ libicuuc.so.68
βΒ Β  βΒ Β      βΒ Β  βββ libLLVM-11.so
βΒ Β  βΒ Β      βΒ Β  βββ liblzma.so.5
βΒ Β  βΒ Β      βΒ Β  βββ libm.so.6
βΒ Β  βΒ Β      βΒ Β  βββ libncursesw.so.6
βΒ Β  βΒ Β      βΒ Β  βββ libOSMesa.so.8
βΒ Β  βΒ Β      βΒ Β  βββ libpthread.so.0
βΒ Β  βΒ Β      βΒ Β  βββ libstdc++.so.6
βΒ Β  βΒ Β      βΒ Β  βββ libxml2.so.2
βΒ Β  βΒ Β      βΒ Β  βββ libz.so.1
βΒ Β  βΒ Β      βΒ Β  βββ libzstd.so.1
βΒ Β  βΒ Β      βββ monroe-cli
βΒ Β  βββ x86_64-pc-windows
βΒ Β      βββ opengl_native
βΒ Β          βββ libs
βΒ Β          βΒ Β  βββ icuuc62.dll
βΒ Β          βββ monroe-cli.exe
βββ v1.2.3
    βββ x86_64-apple-darwin
    βΒ Β  βββ opengl_native
    βΒ Β      βββ monroe-cli
    βββ x86_64-pc-linux-gnu
    βΒ Β  βββ opengl_glx
    βΒ Β  βΒ Β  βββ libs
    βΒ Β  βΒ Β      βββ ...
    βΒ Β  βββ opengl_osmesa
    βΒ Β      βββ libs
    βΒ Β      βΒ Β  βββ ld-linux-x86-64.so.2
                        .
                        .
    βΒ Β      βΒ Β  βββ libzstd.so.1
    βΒ Β      βββ monroe-cli
    βββ x86_64-pc-linux-musl
    βΒ Β  βββ opengl_osmesa
    βΒ Β      βββ libs
    βΒ Β          βββ ld-musl-x86_64.so.1
                    .
                    .
    βΒ Β          βββ libzstd.so.1
    βββ x86_64-pc-windows
        βββ opengl_native
            βββ libs
            βΒ Β  βββ icuuc62.dll
            βββ monroe-cli.exe
FAQs
Avocode Monroe rendering CLI JavaScript wrapper
The npm package @avocode/monroe-cli receives a total of 1 weekly downloads. As such, @avocode/monroe-cli popularity was classified as not popular.
We found that @avocode/monroe-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.Β It has 15 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
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.

Research
/Security News
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.