
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
eml-parse-js
Advanced tools
RFC 822 EML file format parser and builder, Can be used in browser environment
fork from
eml-format-js(used in Browser env) &eml-format(used in NodeJs env)
eml-format-js for parsing html from the eml with quoted-printabledata with base64 in attachmentimport { parseEml, readEml, GBKUTF8, decode } from 'eml-parse-js';
// const eml = await axios(http | ajax).get()
// `.eml` file
readEml(eml, (err, ReadEmlJson) => {
});
interface Attachment {
name: string;
contentType: string;
inline: boolean;
data: string | Uint8Array;
data64: string;
filename?: string;
mimeType?: string;
id?: string;
cid?: string;
}
interface ReadEmlJson {
attachments: Attachment
date: Date | string;
subject: string;
from: EmailAddress | EmailAddress[] | null;
to: EmailAddress | EmailAddress[] | null;
cc?: EmailAddress | EmailAddress[] | null;
headers: EmlHeaders;
multipartAlternative?: {
'Content-Type': string;
};
text?: string;
textheaders?: BoundaryHeaders;
html?: string; // email html data
htmlheaders?: BoundaryHeaders;
attachments?: Attachment[];
data?: string;
}
FAQs
format EML file in browser env
The npm package eml-parse-js receives a total of 7,236 weekly downloads. As such, eml-parse-js popularity was classified as popular.
We found that eml-parse-js demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.