Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 577 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 577 Bytes

eml-parser

a simple javascript parser to read .eml (E-Mail) files

demo

check https://raw.githack.com/netas-ch/eml-parser/main/_test/test.html for a demo.

usage

const emlr = await import('./src/EmlReader.js');
const email = new emlr.EmlReader(fileAsArrayBuffer);

console.log(email.getDate());
console.log(email.getSubject());
console.log(email.getFrom());
console.log(email.getCc());
console.log(email.getTo());
console.log(email.getReplyTo());
console.log(email.getAttachments());

license

Copyright © 2023 Netas AG - MIT license