{"_id":"dotmsg","name":"dotmsg","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.1":{"name":"dotmsg","version":"0.1.1","type":"module","description":"A JavaScript / Typescript library for parsing .msg files","main":"dist/dotmsg.cjs.js","module":"dist/dotmsg.esm.js","types":"dist/index.d.ts","scripts":{"build":"rollup -c","test":"jest","lint":"eslint 'src/**/*.ts' --quiet"},"repository":{"type":"git","url":"git+https://github.com/karimould/dotmsg.git"},"keywords":["msg","outlook","email","parser","javascript","typescript"],"author":{"name":"Karim Ould Mahieddine","email":"karim_om@me.com"},"license":"MIT","devDependencies":{"@rollup/plugin-commonjs":"^24.0.1","@rollup/plugin-node-resolve":"^15.0.1","@rollup/plugin-terser":"^0.4.0","@rollup/plugin-typescript":"^11.0.0","@semantic-release/changelog":"^6.0.2","@semantic-release/git":"^10.0.1","@semantic-release/npm":"^9.0.2","@types/jest":"^27.5.2","@types/node":"^17.0.6","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","eslint":"^8.36.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","jest":"^27.5.1","prettier":"^2.5.1","rollup":"^2.79.1","rollup-plugin-delete":"^2.0.0","semantic-release":"^20.1.3","ts-jest":"^27.1.5","typescript":"^4.6.2"},"dependencies":{"cfb":"^1.2.2"},"gitHead":"623ef694c37d001133ef294b42c5623dba1cf17d","bugs":{"url":"https://github.com/karimould/dotmsg/issues"},"homepage":"https://github.com/karimould/dotmsg#readme","_id":"dotmsg@0.1.1","_nodeVersion":"18.14.2","_npmVersion":"9.5.0","dist":{"integrity":"sha512-2A182NCfPaI5d3tCs3mBnNemY9pWWw/1iW/RAyXP/5EqIN4g+DLXluh7B+zOPLoXuZGteNTdCEJayLhMGoSZUg==","shasum":"8adbe0005694bad193d0c8c1d3ebdb8214cf0f37","tarball":"https://registry.npmjs.org/dotmsg/-/dotmsg-0.1.1.tgz","fileCount":33,"unpackedSize":1091053,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBoeH5nCj0q02GGyG2WjxqWP+AK3i4LmwGQO3gXTBdmwAiEAm7vSTGip64MlEGQhQwkjCqlh9ieNbuJO51bA17WWmyE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGjIjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoUeQ//UkJiUeEA5vA1cKj266WEYjPT/ZTp1CIEytw3RXEvP4w6APzO\r\nSV6VNFiJpTkWSnq5PBOwbCb2vpzIN7zSJaY2W58uqt7alDD+HLlNCVchORkn\r\nOQScoRT9omqyoG/3CbaSk73zqkfM5/lwoiGyafos+1WBdxevco/F33qEuy26\r\nOQVZhS0HBOuT3bUNiLkg+Ch3fCHr0aHSXftnHuN4kI/n53EBaxnH5oiIKCvB\r\nqn1tgpRVoYS5mVsyZFCxv8SyMzs6RxPd7gAG4+3AVi65FbqLGcw4l9gJrWdU\r\nWYqagZLS/1eLufWoGkk1ii+Hr2fYj0Aq4LJGnQwWQNlZgV7oLfVaygIiKLAG\r\n1srlQYXFTl6JPYMjrwRr1CtZjT/quyBswPydB7qstlMvjxBfOgY7zbZue+bp\r\nPsUocyzl+2d/gdy6RZB6k9RUwfkP714LnTdzFt12igqFO/ozSaGc3pbU4Cm+\r\ndoroB2QwTDUeu9egi9YYj2qGWRj2kvT+nShD/w9DtXlBce0G++e/65kt4R4D\r\nE/iQoobBfhQJPdwnaZ7pF5i9k7UjwIgY9Oen98csf8BkT13RkCQTc2ithnVI\r\nxzj5EcLIAXlSVq56FEvkJTcKw3rhtnFKwsi9eJ14tXIh4YofBSGbwmWW+iOz\r\ny04FykHRC3gq4e8uxczYULNVaZpFwu+XdzE=\r\n=QDbD\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"karimould","email":"karim_om@me.com"},"directories":{},"maintainers":[{"name":"karimould","email":"karim_om@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dotmsg_0.1.1_1679438371321_0.5891432122685234"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-21T22:39:31.319Z","0.1.1":"2023-03-21T22:39:31.497Z","modified":"2023-03-21T22:39:31.694Z"},"maintainers":[{"name":"karimould","email":"karim_om@me.com"}],"description":"A JavaScript / Typescript library for parsing .msg files","homepage":"https://github.com/karimould/dotmsg#readme","keywords":["msg","outlook","email","parser","javascript","typescript"],"repository":{"type":"git","url":"git+https://github.com/karimould/dotmsg.git"},"author":{"name":"Karim Ould Mahieddine","email":"karim_om@me.com"},"bugs":{"url":"https://github.com/karimould/dotmsg/issues"},"license":"MIT","readme":"# dotmsg 📧\n\nDotmsg is a lightweight, versatile JavaScript / TypeScript library for parsing .msg files, specifically designed for both server-side and client-side (browser) applications.\nCompatible with modern web frameworks, it simplifies the process of extracting email content, metadata, and attachments from Microsoft Outlook .msg files.\n\n## Installation 🔧\n\n```bash\nnpm install dotmsg\n```\n\n## Features 🌟\n\n- Parse .msg files from Buffer or Uint8Array inputs\n- Extract email content, such as plain text and HTML content\n- Extract email metadata, such as sender, recipients, subject, and dates\n- Extract email attachments\n\n## Usage 🚀\n\nHere's a basic example of how to use the dotmsg library in an node enviroment:\n\n```javascript\nimport { DotMsgParser } from \"dotmsg\";\nimport fs from \"fs\";\n\nasync function main() {\n  const data = fs.readFileSync(\"path/to/your/file.msg\");\n  const parser = new DotMsgParser();\n\n  await parser.parseBuffer(data);\n\n  console.log(\"Subject:\", parser.getSubject());\n  console.log(\"Sender:\", parser.getSenderEmail());\n  console.log(\"Plain text content:\", parser.getTextContent());\n}\n\nmain();\n```\n\n## API 📘\n\n### DotMsgParser\n\nThe main class for parsing .msg files.\n\nParses a .msg file from a Buffer or Uint8Array input.\n\n```javascript\nasync parseBuffer(input: Buffer | Uint8Array): Promise<void>\n```\n\nGet the plain text content of the email.\n\n```javascript\ngetTextContent(): string | undefined\n```\n\ngetHTMLContent(): string | undefined\nGet the HTML content of the email.\n\ngetSenderEmail(): string | undefined\nGet the sender's email address.\n\ngetSenderName(): string | undefined\nGet the sender's name.\n\ngetSubject(): string | undefined\nGet the subject of the email.\n\ngetSentDate(): string | undefined\nGet the sent date of the email.\n\ngetReceivedDate(): string | undefined\nGet the received date of the email.\n\ngetReceivedByEmail(): string | undefined\nGet the email address of the recipient.\n\ngetReceivedByName(): string | undefined\nGet the name of the recipient.\n\ngetCC(): string[] | undefined\nGet the CC recipients of the email.\n\ngetPriority(): string | undefined\nGet the priority of the email.\n\ngetTo(): string | undefined\nGet the TO recipients of the email.\n\ngetBCC(): string[] | undefined\nGet the BCC recipients of the email.\n\ngetReplyTo(): string | undefined\nGet the reply-to address of the email.\n\ngetImportance(): string | undefined\nGet the importance level of the email.\n\ngetDeliveryReceiptRequested(): string | undefined\nGet whether a delivery receipt was requested for the email.\n\ngetAttachments(): Attachment[]\nGet the attachments of the email.\n\n### Attachment\n\nA class representing an email attachment.\n\nconstructor(filename: string, data: Buffer)\nCreate a new Attachment instance.\n\nfilename: string\nThe filename of the attachment.\n\ndata: Buffer\nThe attachment data as a Buffer.\n\n## License\n\nMIT 📄\n","readmeFilename":"README.md"}