Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@ronomon/mime
Advanced tools
Fast, robust, compliant MIME decoder. Ships with extensive tests and fuzz tests.
RFC 5322 - Internet Message Format.
RFC 2045 - Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies.
RFC 2046 - Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types.
RFC 2047 - MIME (Multipurpose Internet Mail Extensions) Part Three: Message Header Extensions for Non-ASCII Text.
RFC 2183 - The Content-Disposition Header Field.
RFC 2231 - MIME Parameter Value and Encoded Word Extensions: Character Sets, Languages, and Continuations.
npm install @ronomon/mime
MIME
decodes on demand only as much as necessary to access a particular property. For example, if you need mime.subject
, then MIME
will search for the end of the headers, and then decode only the subject
, and not all other headers, or the body.
var MIME = require('@ronomon/mime');
var mime = new MIME.Message(buffer);
mime.headers;
mime.body;
mime.from;
mime.to;
mime.cc;
mime.bcc;
mime.date;
mime.subject;
mime.parts;
To run all included tests:
node test.js
FAQs
Fast, robust, standards-compliant MIME decoder. Ships with extensive tests and fuzz tests.
We found that @ronomon/mime 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.