{"name":"address-rfc2822","version":"2.0.6","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":"^3.1.0"},"gitHead":"98a655eb9bffeed6aa8ec556356422eebd09c7ab","bugs":{"url":"https://github.com/haraka/node-address-rfc2822/issues"},"_id":"address-rfc2822@2.0.6","_nodeVersion":"12.19.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-sjfmOl9g9TFv/d1yhtZ5tpFquiAxzrMyuUrP+bkFzh9/iQLH3FPu2hsRu5TdrQPd7HKYpESwBXwh5yzcAjFe8g==","shasum":"89d9fb697aee066dac8c39538f29d74284e71e94","tarball":"http://registry-npm.ywwl.com/address-rfc2822/download/address-rfc2822-2.0.6.tgz","fileCount":15,"unpackedSize":22250,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftGsYCRA9TVsSAnZWagAAs3wP/3YsBIFYl5LoxgVFTEDN\nwIYw+M461Kj/pKAwTAlsGCOse9dZJV+YtyNArdOi+wO4kP+hrTaiJsuyhmr6\nR6AaT8w5oVQYpZmNIngu/sWzuZykShZGnYSZFEPYxHy9Gyp2PNOHu29woUKg\nES2SCpXbtYUnwp404oIuIB/jt2rW6mEMu7hPszl59sRASWWfdQzFfh2H0Px0\n5KnksGQyAqo/YmBYQK9jfgH8lbm00Iv7hDqtT1eU+XVnZMAiUA0j8+tHRAYR\n1hlxA/ii5LZX6EZapPyVuBcDMg+/LQeZvLP9XfrXMnL7YPJ59WNNs1N0X7tO\n7Sm0GzNCccPip5WW64BP9BRIpF5eQKikXqELF/CA88G8YKkdx96jAyV3H7xt\naKpQL0wgemmpAKwVhlfUme5NgA8q1fb8GqbdiICyGYszmB9GLLbiWhpgP788\n6JnE4t6XhkPXO4sT7/yz0iR5mMvvvUEZD2OZBh8DnXKGtCjBfaVOLgvDDpjD\n13M6kxQZNcBcOGfj6Y+FBaCHT8YiUimlvLlERjv4a1LZhQZYbA3C7ItkXtgn\nhr5vTPjeACOAxNA7z+Vn2FI8pigl1N0hGL0qETeUj6scmxQqhZfKONAfJ9Hg\n4mZTjeDPQ8Hnv/8hFfd+xrQkKyp4umPh5pYmjZpjovYpux5AmyDodgE3CJ+P\nMR/c\r\n=mWLz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDcaLqLpb5Ehw8cw4nwYfRnNhdlL4Of/qJQNf5rVojevAiEAsTWLpriCNqxOVQn8Rxs50MWfk+kPIzYw1UasdgAgfO4="}],"size":7484,"noattachment":false,"key":"/address-rfc2822/-/address-rfc2822-2.0.6.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.0.6_1605659415594_0.8643117570887437"},"_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":1605659415692,"deprecated":"use @haraka/email-address","_cnpm_publish_time":1605659415692,"dist-tags":{"latest":"2.2.4"}}