![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
comsat is a node.js library for parsing Starcraft 2 replay files.
The library utilizes mpyq for replay extraction, with parsing all done through javascript.
This code will print a listing of the player slots in this replay. You can do a lot more with comsat, however, see the source, tests and/or util.inspect
for examples of the kind of data you can pull out (eventually I will have a list here of members for each of the properties on the Replay objects).
var comsat = require('comsat');
comsat.loadReplay('/path/to/replay.SC2Replay', false /* deleteFile */, function(err, rep) {
if(err) throw err;
for(var i = 0; i < rep.players.length; i++) {
if(rep.players[i]) {
console.log(rep.players[i].name, ' - ', rep.players[i].race.value);
}
else {
console.log('Open');
}
}
});
comsat uses mpyq for extracting and decompressing replays and map files, so you'll need both python and mpyq.
You may also need to install some additional dependencies for node-bigint. See the install guide for more details.
To install comsat itself, use npm:
npm install comsat
To run the tests, simply run:
npm test
FAQs
Starcraft 2 replay file parsing in node.js
We found that comsat 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.