
Security News
High-Severity RCE Vulnerability Disclosed in next-mdx-remote
HashiCorp disclosed a high-severity RCE in next-mdx-remote affecting versions 4.3.0 to 5.x when compiling untrusted MDX on the server.
construction
Advanced tools
:construction: Interface with binary structures in Javascript, built for network protocols.
:construction: Interface with binary structures in Javascript, built for network protocols.
struct User {
uint8_t age;
int32_t favouriteNumber;
}
const Construction = requrie("construction");
const t = Construction.types;
const User = new Construction("LE", {
age: t.UInt8;
favouriteNumber: t.Int32
});
Create a new construction object.
// Endianness can be "LE" or "BE"
const User = new Construction("LE", {
age: t.UInt8,
favouriteNumber: t.Int32
});
Convert a javascript object to a binary buffer.
const buffer = User.write({
age: 15,
favouriteNumber: 1000000
});
console.log(buffer);
// <Buffer 0f 40 42 0f 00>
Convert a binary buffer to a javascript object.
const user = User.read(Buffer.from("0f40420f00", "hex"));
console.log(user);
// { age: 15, favouriteNumber: 1000000 }
FAQs
:construction: Interface with binary structures in Javascript, built for network protocols.
The npm package construction receives a total of 5 weekly downloads. As such, construction popularity was classified as not popular.
We found that construction 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
HashiCorp disclosed a high-severity RCE in next-mdx-remote affecting versions 4.3.0 to 5.x when compiling untrusted MDX on the server.

Security News
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.