{"_id":"@adamjlow/emailjs-mime-parser","name":"@adamjlow/emailjs-mime-parser","dist-tags":{"latest":"2.0.8"},"versions":{"2.0.8":{"name":"@adamjlow/emailjs-mime-parser","version":"2.0.8","homepage":"https://github.com/emailjs/emailjs-mime-parser","description":"Parse a mime tree, no magic included.","author":{"name":"Andris Reinman","email":"andris@kreata.ee"},"keywords":["mime"],"license":"MIT","scripts":{"build":"./scripts/build.sh","lint":"$(npm bin)/standard","preversion":"npm run build","test":"npm run lint && npm run unit","unit":"$(npm bin)/mocha './src/*-unit.js' --reporter spec --require babel-register testutils.js","test-watch":"$(npm bin)/mocha './src/*-unit.js' --reporter spec --require babel-register testutils.js --watch"},"repository":{"type":"git","url":"git://github.com/adamjlow/emailjs-mime-parser.git"},"main":"dist/mimeparser","dependencies":{"emailjs-addressparser":"^2.0.3","emailjs-mime-codec":"^2.0.9","ramda":"^0.28.0"},"devDependencies":{"babel-cli":"^6.26.0","babel-preset-es2015":"^6.24.1","babel-register":"^6.26.0","chai":"^4.2.0","mocha":"^6.1.4","nodemon":"^1.19.1","pre-commit":"^1.2.2","sinon":"^7.3.2","standard":"^12.0.1","text-encoding":"^0.7.0"},"standard":{"globals":["sinon","describe","it","before","beforeEach","afterEach","after","expect"],"ignore":["dist"]},"bugs":{"url":"https://github.com/adamjlow/emailjs-mime-parser/issues"},"gitHead":"49379e23f0ae52f34450dd42d73e32789e7b52e4","_id":"@adamjlow/emailjs-mime-parser@2.0.8","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-tk8HLFqXE1VwqaJElCH5Qu0MRjdyjadpszgoGkdYiMXFAHmKOJiihY8C0PXnyo1NjGciL56YX+NHGqz3/EViWQ==","shasum":"5e1dfcf87f4d576f60730d1d5528c4120abae3a7","tarball":"https://registry.npmjs.org/@adamjlow/emailjs-mime-parser/-/emailjs-mime-parser-2.0.8.tgz","fileCount":15,"unpackedSize":117352,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF48HT1hOw1d5RmlgZ/3YMiy+eGKb5GO0qWKrNNmjKPCAiAN/9BjR2POgilLoL5gNfFL9Vz/4qXNTosW+5wNmgklGw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUuLQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp5jw//XFSQV1Bcpkdsax57PMbtsRFcMIXKzT+h5kl4jaezdtLOu+Wd\r\nRGhyYoV9GrkUtHsrP1aqenJ0scrHBO/0r0jUvueii3/LCs9V6YxMFESl+juX\r\nM+5TwON0CEZ9PTjaNyCQeNh9x2pxVWkiZaWoyV0D8b/fH4+2+swcjEH4pr83\r\nw7oQSzMt+CXtFOoylBndeXqHrDL4/H1ZdVCqbgTvqlrtgSyLuNKwNu90W+jR\r\nwyvAp3YfmPiqDPrZk3mRueYJNAciWjtpU4cKZPNF5P3psf8HC1/EJ4JYdoUj\r\nl9VwUrZNILlowAnUsWqS8lLjkWPudvD0R7veEg58oouomOIOmoWCfhtAZiHw\r\nYoCBRDHd9qaVvya1Oi6FTJgULsysSXEX4fxGF0CcxYgoWKORkz2K2vw6ue+2\r\nSRaLTVgkeRoI46gCGMdgFBkEl0kQ//6neL5zT/CwYEZTas1SrZ8lwblCNYCI\r\nfHBcRc8lU94A+/yMT+DerEHQw3zbp5ori5t2P6/pOX/+JzSxZJssIY60e0Hg\r\nWZh3Qs56W+QSq2QfpBP7hYamLQbyoPpJmyMY8lryVnCiSbHmTStT+smfwFPU\r\nz5eYJIFbIh0l4lZ6u42PLeRxwWr4SOekOzs40Za51jXK9kNQj7F4fsRd1w7U\r\nak9GOzNGC6PqljR7WCE0WoNogkx4zfYPVuo=\r\n=3jjc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"adamjlow","email":"adamjlow@adamlow.net"},"directories":{},"maintainers":[{"name":"adamjlow","email":"adamjlow@adamlow.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/emailjs-mime-parser_2.0.8_1666376400741_0.07107392220336317"},"_hasShrinkwrap":false}},"time":{"created":"2022-10-21T18:20:00.672Z","2.0.8":"2022-10-21T18:20:00.937Z","modified":"2022-10-21T18:20:01.075Z"},"maintainers":[{"name":"adamjlow","email":"adamjlow@adamlow.net"}],"description":"Parse a mime tree, no magic included.","homepage":"https://github.com/emailjs/emailjs-mime-parser","keywords":["mime"],"repository":{"type":"git","url":"git://github.com/adamjlow/emailjs-mime-parser.git"},"author":{"name":"Andris Reinman","email":"andris@kreata.ee"},"bugs":{"url":"https://github.com/adamjlow/emailjs-mime-parser/issues"},"license":"MIT","readme":"# emailjs-mime-parser\n\n## HELP WANTED\n\nFelix is not actively maintaining this library anymore. But this is the only IMAP client for JS that I am aware of, so I feel this library still has its value. Please let me know if you're interested in helping out, either via email or open an issue about that.\n\nThe work that's on the horizon is:\n\n* Adding features as per requests\n* Refactor to allow streaming and cut down memory consumption\n* Stay up to date with developments in the IMAP protocol\n* Maintenance of the other related emailjs libraries\n* Maintenance and update of [emailjs.org](https://emailjs.org)\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/emailjs/emailjs-mime-parser.svg)](https://greenkeeper.io/) [![Build Status](https://travis-ci.org/emailjs/emailjs-mime-parser.png?branch=master)](https://travis-ci.org/emailjs/emailjs-mime-parser) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)  [![ES6+](https://camo.githubusercontent.com/567e52200713e0f0c05a5238d91e1d096292b338/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f65732d362b2d627269676874677265656e2e737667)](https://kangax.github.io/compat-table/es6/) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nParse a mime tree, no magic included. This is supposed to be a \"low level\" mime parsing module. No magic is performed on the data (eg. no joining HTML parts etc.). All body data is emitted out as Typed Arrays, so no need to perform any base64 or quoted printable decoding by yourself. Text parts are decoded to UTF-8 if needed. In addition, line terminators are preserved which permits the functionality of verifying a message signature.\n\n## Usage\n\n```\nnpm install --save emailjs-mime-parser\n```\n\n```javascript\nimport parse from 'emailjs-mime-parser'\n\nparse(String) -> MimeNode\n```\n\n### MimeNode\n\nA MimeNode represents a MIME tree.\n\n```\nMimeNode\n|\n+----> childNodes -> [MimeNode]\n+----> content -> Uint8Array\n+----> bodyStructure -> String\n```\n\n```\nMimeNode.childNodes -> [MimeNode]\n```\n\nThe child MIME nodes are stored in the `childNodes` array.\n\n```\nMimeNode.content -> Uint8Array\n```\n\nThe content of the specific node is stored in `this.content` as Uint8Array. All body data is emitted as Typed Arrays, so no need to perform any base64 or quoted printable decoding by yourself. Text parts are decoded to UTF-8 if needed.\n\n**message/rfc822** is automatically parsed if the mime part does not have a `Content-Disposition: attachment` header, otherwise it will be emitted as a regular attachment (as one long Uint8Array value).\n\n\n```\nMimeNode.bodyStructure -> String\n```\n\nBodystructure is the original raw message stripped of bodies and multipart preambles. MIME stores like to store the bodystructure of MIME content in raw (loss-less) form, to later run through a MIME parser to answer IMAP or WebDAV type queries.\n\n## License\n\n    The MIT license\n\n    Copyright (c) 2013 Andris Reinman\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in\n    all copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n    THE SOFTWARE.\n","readmeFilename":"README.md"}