{"name":"address-rfc2822","version":"2.1.0","description":"RFC 2822 & 5322 (Header) email address parser","main":"index.js","homepage":"https://github.com/haraka/node-address-rfc2822","keywords":["email","address","rfc822","rfc2822","rfc5322","mail","from"],"scripts":{"test":"npx mocha","lint":"npx eslint *.js test/*.js","lintfix":"npx eslint --fix *.js test/*.js","cover":"NODE_ENV=cov npx nyc --reporter=lcovonly npm test","versions":"npx dependency-version-checker check"},"repository":{"type":"git","url":"git+https://github.com/haraka/node-address-rfc2822.git"},"devDependencies":{"eslint":"*","eslint-plugin-haraka":"*","mocha":"*"},"license":"MIT","dependencies":{"email-addresses":"^4.0.0"},"gitHead":"1bb66f04eccfc3de84720f803c24026c1f686efe","bugs":{"url":"https://github.com/haraka/node-address-rfc2822/issues"},"_id":"address-rfc2822@2.1.0","_nodeVersion":"12.20.1","_npmVersion":"6.14.11","dist":{"integrity":"sha512-TwoTmJcYzS+CLw/h+AO3zOzRFGSMNowmp/tlOXcYPygkr2vMAWLs0pDajJiJK/dtVPpFx1utw/CzzLfmmtkagw==","shasum":"89a36f0d9b70dded9dc912cdbd982cd95bd05b22","tarball":"http://registry-npm.ywwl.com/address-rfc2822/download/address-rfc2822-2.1.0.tgz","fileCount":8,"unpackedSize":20871,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOXapCRA9TVsSAnZWagAAlFUP/1Nnid/HJ3QyextkLmN+\nvMT5mUsI1BdU6C9ZBixzmR51xY84RHuzidwY5llH517kVq9AWjV9rEQQu/1I\nied1SxlppkA8V9al0J3xLeUGndRw2smZq/R6Y4qRfBT/wMPcWapWdjdOi+px\nV2B0CAHMmFkRrGnvPtNsZIbigdliy4gXG5L28KqH7+0Y6ZQCPzOCdruV4Ulr\nvS1ap0a0q1L5fa/XnR0BMeqS8AQyZ9A5QD0lKZkDWrQAiA7LoH8rppKkI29E\nAIQmiVKDm0GxJnLi5W78W+jpa4HotjpniF4CB5SH8Xk5sQI6JL2rUKeT2kWw\nCckMQL8PhvktsdB1oW6QZzYVHR2ZSsOCA2ulVswqrxuZcUL+F7vgmfhKNU5o\nn+S3S7QsEHENBDpI+F44pMWTArB0SnMSQJlO206Q7JZ0UiAfwG6jcY4jRpvM\n0HYZJM50/n/yZlvySGrFFTBcW2jGivRnKepXtruTJwPtjvQrxicTSuwo8WF0\nK9HFjDDTGWVB/jQkMH+QdqdZo3assmU/+tBRKA9W3h/RZ1xbIjxA/zKUvtML\nW+M6iaBr574oCyq/30FyODxsnHo/rLoy/lz8344BFO351vx35DJJ2jIe/t3H\n/sReX7bN1ksBNO/9dTY5I0ra8JtiOcOHM0Ote5HqqYf8hXu1FurOuNRFYkRC\nVmDo\r\n=3WQw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIPv8sEaAYSlo9BUMErRyo0r8dGh/Xp5B5NyRX9vvcMAIhAJBuTvoKN+ARIEubwf4/7Dl6yRlTd/jjbowt6FSgJdta"}],"size":6910,"noattachment":false,"key":"/address-rfc2822/-/address-rfc2822-2.1.0.tgz"},"_npmUser":{"name":"tnpi","email":"matt@tnpi.net"},"directories":{},"maintainers":[{"name":"msergeant","email":"helpme@gmail.com"},{"name":"tnpi","email":"matt@tnpi.net"},{"name":"msimerson","email":"haraka.mail@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/address-rfc2822_2.1.0_1614378664798_0.08163803941466963"},"_hasShrinkwrap":false,"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":1614378664957,"deprecated":"use @haraka/email-address","_cnpm_publish_time":1614378664957,"dist-tags":{"latest":"2.2.4"}}