{"name":"address-rfc2822","version":"2.2.3","keywords":["email","address","rfc822","rfc2822","rfc5322","mail","from"],"license":"MIT","_id":"address-rfc2822@2.2.3","maintainers":[{"name":"msergeant","email":"helpme@gmail.com"},{"name":"tnpi","email":"matt@tnpi.net"},{"name":"msimerson","email":"haraka.mail@gmail.com"}],"homepage":"https://github.com/haraka/node-address-rfc2822","bugs":{"url":"https://github.com/haraka/node-address-rfc2822/issues"},"dist":{"shasum":"b74674c96e17c221fc020347ca0025120f184d7a","tarball":"http://registry-npm.ywwl.com/address-rfc2822/download/address-rfc2822-2.2.3.tgz","fileCount":4,"integrity":"sha512-M+tNumDEri308IBqo88uK5Ck2NEdvrCbrUwZfJXD0xkxMK0OrXY/OWyE6/xc1Z7MNBK7KCfZeZzz1QI4UMI+Mw==","signatures":[{"sig":"MEUCIFRqtB/Sq6N4gs7OpzoGaoETNLhCQBoehp11wt5a4Ej/AiEAkNcMN4ceiIUtFfwHa8OZb++iQ1qGuQI6Tr8hCS+7W88=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12984,"size":4706,"noattachment":false,"key":"/address-rfc2822/-/address-rfc2822-2.2.3.tgz"},"main":"index.js","gitHead":"b7d18daa9f1bbd488ca7fb5beed6fdd957ab5771","scripts":{"lint":"npx eslint *.js test","test":"npx mocha@10","format":"npm run prettier:fix && npm run lint:fix","lint:fix":"npx eslint *.js test --fix","prettier":"npx prettier . --check","versions":"npx dependency-version-checker check","prettier:fix":"npx prettier . --write --log-level=warn","versions:fix":"npx dependency-version-checker update && npm run prettier:fix"},"_npmUser":{"name":"msimerson","email":"haraka.mail@gmail.com"},"repository":{"url":"git+https://github.com/haraka/node-address-rfc2822.git","type":"git"},"_npmVersion":"10.8.2","description":"RFC 2822 & 5322 (Header) email address parser","directories":{},"_nodeVersion":"20.18.1","dependencies":{"email-addresses":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"@haraka/eslint-config":"2.0.2"},"_npmOperationalInternal":{"tmp":"tmp/address-rfc2822_2.2.3_1736800256121_0.3375126444706815","host":"s3://npm-registry-packages-npm-production"},"readme":"# NOTICE, DEPRECATED\n\nThis module is superseded by [@haraka/email-address](https://www.npmjs.com/package/@haraka/email-address). New projects should use `@haraka/email-address` instead. (ref haraka/Haraka#3564)\n\n---\n\n[![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":1736800256297,"deprecated":"use @haraka/email-address","_cnpm_publish_time":1736800256297,"dist-tags":{"latest":"2.2.4"}}