Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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-printable
data
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 6,070 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.