
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
minecraft-runner
Advanced tools
An API for running minecraft server instances. It also monitors the server for
particular events and emits them in ways that you can use in your application.
For example, it will emit a joined event when a player joins the server.
npm install minecraft-runner
Include in your project, the export is a single constructor function
var Game = require("minecraft-runner");
The constructor will create an object representing a file on disk.
Arguments
minecraft_server.jarjava executable (default: "java")-Xms{ram} -Xmx{ram} (default: "1G")var game = new Game("/path/to/server", "/path/to/jar");
Startup the server instance. The callback is executed once the server reports it has finished starting.
Arguments
child_process.spawn()game.start(function (err, proc) {
// err => null or Error()
// proc => spawned process object, same as this.process
});
Stops the server instance. The callback is executed once the process exits. (ie: when the server finishes shutting down)
Arguments
game.stop(function (err) {
// err => null or Error()
});
Restarts the server instance. (ie. calls stop(), then start() in succession)
Arguments
child_process.spawn()game.restart(function (err, proc) {
// err => null or Error()
// proc => spawned process object, same as this.process
});
Issues a command to the server. All the arguments to the function are joined with a space.
Arguments
// broadcast "Hello World" to all players on the server
game.command("say", "Hello World");
// say "Hello" to only player testuser
game.command("tell", "testuser", "Hello");
Short-hand for game.command("say", msg);
Arguments
game.say("Hello World!");
save-off command)save-on command)save-all command)FAQs
A node module meant to manage a minecraft server instance
We found that minecraft-runner 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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.