
Security News
Opengrep Adds Apex Support and New Rule Controls in Latest Updates
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
binopsy
Reimplementation of keichi/binary-parser, supporting both streams and serialization.
The API is mainly the same as binary-parser
's, with a couple of additions and one removed method.
.skip
Due to undefined behavior, .skip
is not supported.
As a workaround the .buffer
method can be used.
.stream
The .stream
method returns a transform stream that reads incoming data and emits parser results.
The parser instance is looped until the end of the input is reached.
.serialize
As a counterpart to binary-parser
's .parse
method, .serialize
takes an object and returns a buffer representation of it.
Optionally, an already allowcated buffer can be passed as a second argument.
.fixedSizeNest
.fixedSizeNest
is a variation of nest
that ensures the nested parser reads a specific amount of bytes.
Fixed-size nested parsers are the only source of ambiguity remaining while serializing, as missing bytes are simply skipped.
And error is thrown during serialization if the nested parser attempts to write more bytes than the size permits.
formatter
s require a deformatter
Properties with a specified formatting function need to also provide a deformatter
function that restores the original value.
flatten
optionAs a very simple extension, the flatten
option allows nested parsers to write to the current object.
Its motivation is the aim for a flat output structure after .choice
calls.
A relaxation from the 32 bit limit of binary-parser
.
Also, a bug of the original project that leads to the bit32
method always parsing a value of 0
is not present.
License: MIT
FAQs
Reimplementation of binary-parser supporting serialization and streaming
The npm package binopsy receives a total of 1 weekly downloads. As such, binopsy popularity was classified as not popular.
We found that binopsy 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 latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.