
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
@cryptella/eml-rfc822
Advanced tools
This package offers a streaming, high-performance parser and serializer for the RFC822 (EML) format. Built on top Web Streams, this package works in modern browsers, Bun and Node.js.
import { parse } from '@cryptella/eml-rfc822';
const stream = new ReadableStream(); // get stream somehow...
// `headers` is always an array IHeader[] ({ name: string; value: string; params?: Record<string, string> }[])
// `body` is a ReadableStream<UInt8Array>
const { headers, body } = await parse(stream, {
decoders: [
multipartDecoder(async (headers, body) => {
// consume nested parts here...
}),
],
});
Or use a simple parseMultipart()
function that returns ArrayBuffers instead of streams and includes base64 decoder:
import { parseMultipart } from '@cryptella/eml-rfc822';
const message: Multipart = await parseMultipart(stream);
interface Multipart = {
boundary: string;
body: Uint8Array;
headers: IHeader[];
parts: Multipart[];
rawHeaders: Uint8Array;
}
This project is sponsored by bausw.com - no-code business apps for the construction industry.
MIT
FAQs
EML/RFC822 parser and serializer.
We found that @cryptella/eml-rfc822 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
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.