{"name":"address-rfc2822","version":"0.0.1","description":"RFC 2822 (Header) email address parser","main":"index.js","keywords":["email","address","rfc822","rfc2822","mail","from"],"scripts":{"test":"./run_tests"},"repository":{"type":"git","url":"git://github.com/baudehlo/node-email-rfc2822.git"},"devDependencies":{"nodeunit":"https://github.com/godsflaw/nodeunit/tarball/master"},"license":"MIT","_id":"address-rfc2822@0.0.1","dist":{"shasum":"e09f1600daf83608d83a344c47ac53f3f521bb34","tarball":"http://registry-npm.ywwl.com/address-rfc2822/download/address-rfc2822-0.0.1.tgz","integrity":"sha512-osQcCz0zcbTE/M/MUIRuasp2IUxHLY0mNKrIDWmzvx/axFFblZd/hMO1Kf17jxTTpVDx0zYSNG+mKB4IhA4GAg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzi3WMRGomflv209LhmKIqUwAXD+IfOcLVMzfj9Aa/OwIgU/OMDxRu0Nfh2G00gTMaowbE0gkO6Qm4ot5Ox6UnO9c="}],"size":5399,"noattachment":false,"key":"/address-rfc2822/-/address-rfc2822-0.0.1.tgz"},"maintainers":[{"name":"msergeant","email":"helpme@gmail.com"}],"directories":{},"readme":"[![Build Status][ci-img]][ci-url]\n[![Code Climate][clim-img]][clim-url]\n[![Coverage Status][cov-img]][cov-url]\n\n# address-rfc2822\n\nParser for RFC 2822 & 5322 (Header) format email addresses.\n\nThis module parses RFC 2822 headers containing addresses such as From, To, CC, and BCC headers.\n\nIt is almost a direct port of the perl module Mail::Address and I'm grateful to the original authors of that module for the clean code and the tests.\n\n## Installation\n\n`npm install address-rfc2822`\n\n## Usage\n\n<!-- prettier-ignore -->\n```js\nconst addrparser = require('address-rfc2822')\n\nconst addresses = addrparser.parse('Matt Sergeant <helpme+npm@gmail.com>')\nconst address = addresses[0]\n\nconsole.log(`Email address: ${address.address}`) // helpme+npm@gmail.com\nconsole.log(`Email name: ${address.name()}`)     // Matt Sergeant\nconsole.log(`Reformatted: ${address.format()}`)  // Matt Sergeant <helpme+npm@gmail.com>\nconsole.log(`User part: ${address.user()}`)      // helpme+npm\nconsole.log(`Host part: ${address.host()}`)      // gmail.com\n```\n\n## More Info\n\n- [RFC 2822](https://tools.ietf.org/html/rfc2822)\n- [RFC 5322](https://tools.ietf.org/html/rfc5322)\n\n## License\n\nThis module is MIT licensed.\n\n[ci-img]: https://github.com/haraka/node-address-rfc2822/actions/workflows/ci.yml/badge.svg\n[ci-url]: https://github.com/haraka/node-address-rfc2822/actions/workflows/ci.yml\n[cov-img]: https://codecov.io/github/haraka/node-address-rfc2822/coverage.svg\n[cov-url]: https://codecov.io/github/haraka/node-address-rfc2822?branch=master\n[clim-img]: https://codeclimate.com/github/haraka/haraka-plugin-template/badges/gpa.svg\n[clim-url]: https://codeclimate.com/github/haraka/haraka-plugin-template\n","publish_time":1363364710079,"deprecated":"use @haraka/email-address","_cnpm_publish_time":1363364710079,"dist-tags":{"latest":"2.2.4"}}