{"name":"address-rfc2822","version":"2.2.4","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":{"format":"npm run prettier:fix && npm run lint:fix","lint":"npx eslint *.js test","lint:fix":"npx eslint *.js test --fix","prettier":"npx prettier . --check","prettier:fix":"npx prettier . --write --log-level=warn","test":"node --test","versions":"npx npm-dep-mgr check","versions:fix":"npx npm-dep-mgr update","test:coverage":"npx c8 --reporter=text --reporter=text-summary npm test"},"repository":{"type":"git","url":"git+https://github.com/haraka/node-address-rfc2822.git"},"devDependencies":{"@haraka/eslint-config":"^2.0.4"},"license":"MIT","dependencies":{"email-addresses":"^5.0.0"},"prettier":{"printWidth":90,"singleQuote":true,"semi":false},"gitHead":"a9729af5e647c26252ad24c5ce74c61fb8c5c7b9","_id":"address-rfc2822@2.2.4","bugs":{"url":"https://github.com/haraka/node-address-rfc2822/issues"},"_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-jgN5ntU50F9cwwSkeeg7Ppznr4kiywukTVQTt+oNqM3ZeXubP7Ij5vOu/SIFLD90xR5geDAjLtTEo59GE82bvQ==","shasum":"2113ce86220b063467a1ab729601516e7ab778ef","tarball":"http://registry-npm.ywwl.com/address-rfc2822/download/address-rfc2822-2.2.4.tgz","fileCount":4,"unpackedSize":13491,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/address-rfc2822@2.2.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCVWClZaxndWrXU+jGwXO80tVjKGAO9JZQBTG6u5J9/+AIgITJgbeqEXpJSNCnIUIW5I7l0xeX+e84LozVtv/RegJQ="}],"size":4928,"noattachment":false,"key":"/address-rfc2822/-/address-rfc2822-2.2.4.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:09d6006e-9a8c-4c05-834e-3d8db85d080a"}},"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-npm-production","tmp":"tmp/address-rfc2822_2.2.4_1779656488562_0.7319646316512964"},"_hasShrinkwrap":false,"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":1779656488695,"deprecated":"use @haraka/email-address","_cnpm_publish_time":1779656488695,"dist-tags":{"latest":"2.2.4"}}