{"name":"address-rfc2822","version":"2.0.5","description":"RFC 2822 (Header) email address parser","main":"index.js","homepage":"https://github.com/haraka/node-address-rfc2822","keywords":["email","address","rfc822","rfc2822","mail","from"],"scripts":{"test":"mocha","lint":"npx eslint *.js test/*.js","lintfix":"npx eslint --fix *.js test/*.js","cover":"NODE_ENV=cov npx nyc --reporter=lcovonly -x test npm test"},"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":"ce27c661da80369c90d778fc33c0931fffa3d5c8","bugs":{"url":"https://github.com/haraka/node-address-rfc2822/issues"},"_id":"address-rfc2822@2.0.5","_nodeVersion":"10.19.0","_npmVersion":"6.13.7","dist":{"integrity":"sha512-SDmgEM2qAXyBZ9v6QMGbBKsvfkClZy8I2ormg/+uopbrP8XzpcoObd1QNe6bnc+KWaHLjGVu7+PghCOC52TqGA==","shasum":"56f174f74db2e9903562bd5f1a3e043a19aa4c4f","tarball":"http://registry-npm.ywwl.com/address-rfc2822/download/address-rfc2822-2.0.5.tgz","fileCount":13,"unpackedSize":19932,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1x7XCRA9TVsSAnZWagAAougQAIFIb/lKbylo78FmzJbI\n14jnWqZx09n13VUc83Wbp6E6HtFtMQkfBuN7ES5IT9wp2H1fGmlqiBzYq459\n1dz2KVVqKPxMMH35O/lMyu5xdnWI72rH8duHPSPUF8G4+6B4FaZnFQkQxETU\neaNsZ56E0ksEWgiITiZTCdffWFOZphRnjZsVlRQktd7xx936/3Nz4nON/ff9\n3CQRkQkySlnxm17LV1GIy0WnyZ/4oIweQnapOQAjSj2c+qzVuM7WeM0Y1hIh\nU7DLLgeGyROoUlDKmXiyu60sOPBfow/T9moHic+MbmDXf5p552lSrOn3p204\ntmxUD2OcxzGlCDDyU/RsG3bNoOrP6qRV0idTWvML4aglLm9GUdgMHCSkbNnQ\nxJrM5z9/zu/x6Ur0UoZEhmGDteSerGbePwX8aVsfJwj7hGYlUL//1MEx142A\n2rWO64MUBe09WuqsTT75N3uXLfwTJeuiXisliwdLGXmsAHWBkL+d9TLchntI\nSsWEaAnVjRRNmOt54uJv1NoDrWpNAihlKBBGxdqMArkTJJ5EhvH2I8RhpFBo\nR04kF2xmrKGbOM21pIsQ/g1F6Ue6tDeZDjK9YIzpNJj+VFzIV4kNg3kXSGj6\nlYulirUFlTxF2svkzO/474L+sjmzt655rlHai0vY4qdHO4Sz3gAEPnq92rJv\nau/O\r\n=/AAY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDfnM/bj7DptDv/EvXWpULfzBaDWDhrHktCF3plfUl4FAiA2Mnbsz+UJIG1K2dcOORH4PzJxuAmM6Aone9OJwnZUZA=="}],"size":6911,"noattachment":false,"key":"/address-rfc2822/-/address-rfc2822-2.0.5.tgz"},"maintainers":[{"name":"msergeant","email":"helpme@gmail.com"},{"name":"msimerson","email":"haraka.mail@gmail.com"},{"name":"tnpi","email":"matt@tnpi.net"}],"_npmUser":{"name":"tnpi","email":"matt@tnpi.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/address-rfc2822_2.0.5_1591156438748_0.28650973435371996"},"_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":1591156438907,"deprecated":"use @haraka/email-address","_cnpm_publish_time":1591156438907,"dist-tags":{"latest":"2.2.4"}}