
Product
Socket Now Supports pylock.toml Files
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
@netlify/binary-info
Advanced tools
binary-info is a WebAssembly(WASM) module to extract very specific information from binary files.
@netlify/binary-info is a WebAssembly(WASM) module to extract very specific information from binary files.
It's used by other Netlify projects to detect Go and Rust binaries built for Netlify Functions and its architecture and platform .
import { readFile } = require("fs");
import { detect, Runtime }from "@netlify/binary-info";
const buffer = await readFile(path);
try {
const info = elf.detect(buffer);
switch (info.runtime) {
case Runtime.Go: console.log("Go binary file"); break;
case Runtime.Rust: console.log("Rust binary file"); break;
default: console.log("Unknown binary file");
}
} catch (error) {
console.log(error);
}
wasm-pack build
wasm-pack build --target nodejs --release --scope=netlify
1.0.0 (2022-06-23)
arch
, platform
, runtime
. Runtime is nullable as we can only detect it for ELF binaries for now. If platform
or arch
cannot be detected it will throw.FAQs
binary-info is a WebAssembly(WASM) module to extract very specific information from binary files.
The npm package @netlify/binary-info receives a total of 491,812 weekly downloads. As such, @netlify/binary-info popularity was classified as popular.
We found that @netlify/binary-info demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 open source maintainers 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.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.