
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
YetAnotherPacketParser
Advanced tools
Yet Another Packet Parser parses .docx quiz bowl packets and translates them to different formats like JSON or HTML
Yet Another Packet Parser (YAPP) is a parser for quiz bowl packets written in C#. Some of its features are
You can try out a simple demo of the parser here.
The command line program takes in a docx file and writes it to another file (by default, JSON)
YetAnotherPacketParserCommandLine.exe -i C:\qbsets\packet1.docx -o C:\qbsets\packet1.json
If you want to output it to an HTML file, set the format to html
YetAnotherPacketParserCommandLine.exe -i C:\qbsets\packet1.docx -o C:\qbsets\packet1.json -f html
To see the list of all flags, run
YetAnotherPacketParserCommandLine.exe --help
YAPP comes with a C# library that is consumable through Nuget. You need to get the stream to the file and set the right compiler options, then call PacketConverter.ConvertPackets
. For example, to convert a packet to HTML, you can use something like
IPacketConverterOptions packetCompilerOptions = new HtmlPacketCompilerOptions()
{
StreamName = "packet1.html",
PrettyPrint = options.PrettyPrint
};
IEnumerable<ConvertResult> results;
using (FileStream fileStream = new FileStream("C:\\qbsets\\packet1.docx", FileMode.Open, FileAccess.Read, FileShare.Read))
{
results = await PacketConverter.ConvertPacketsAsync(fileStream, packetCompilerOptions);
}
ConvertResult compileResult = outputResults.First();
if (!compileResult.Result.Success)
{
Console.Error.WriteLine(compileResult.Result);
return;
}
File.WriteAllText(options.Output, compileResult.Result.Value);
Note that the method can take in a zip file too, and it will return all of the packets it attempted to parse.
dotnet build
or through dotnet restore
FAQs
Yet Another Packet Parser parses .docx quiz bowl packets and translates them to different formats like JSON or HTML
We found that yetanotherpacketparser 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
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.