{"_id":"addressparser","_rev":"26-1f80a20f73c76bb5ed9272c8dd59a365","name":"addressparser","description":"Parse e-mail addresses","dist-tags":{"latest":"1.0.1"},"versions":{"0.1.0":{"name":"addressparser","version":"0.1.0","description":"Parse e-mail addresses","main":"index.js","scripts":{"test":"nodeunit test.js"},"repository":"","author":{"name":"Andris Reinman"},"license":"MIT","devDependencies":{"nodeunit":"*"},"_id":"addressparser@0.1.0","dist":{"shasum":"16652e7d083791aaf5ad49bcd5473f3ec81b54f2","tarball":"https://registry.npmjs.org/addressparser/-/addressparser-0.1.0.tgz","integrity":"sha512-yQnoGBjqRUY3OPP/18dIvweNGEJjx9XDxCimP9XRKY0vvsEyRGCXpjVplXp67TSxALFLg7xtUbUh3P6L1SweWg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHg89Q9X/WdJCNRZUF9yTVXf2r3yrFgAI7ccx6+kB8rmAiEAzWS+RymZ4oWXP2IG4z65BPjEBcuBaP5MM4GiEpk3WgA="}]},"maintainers":[{"name":"andris","email":"andris@node.ee"}]},"0.1.1":{"name":"addressparser","version":"0.1.1","description":"Parse e-mail addresses","main":"index.js","scripts":{"test":"nodeunit test.js"},"repository":"","author":{"name":"Andris Reinman"},"license":"MIT","devDependencies":{"nodeunit":"*"},"_id":"addressparser@0.1.1","dist":{"shasum":"268a04094e6b2b39ceaa315e067ab29aae35037d","tarball":"https://registry.npmjs.org/addressparser/-/addressparser-0.1.1.tgz","integrity":"sha512-rtEDrVTN6VIV37n+oD9LrW9mfLD3DlewVZaqwrFUU6cMeS625FyYIbEH1Y4MVecbim7WPjvAoM1ooUVUPoOWGQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8ARj6Kd7LHElAMy10i+Vllix51ju/yqIdDjqfY1CpUQIgLPNZfF1+HjUXi1KXjpX6m/m/HDLJHIaidh3yWVp4tjg="}]},"maintainers":[{"name":"andris","email":"andris@node.ee"}]},"0.1.2":{"name":"addressparser","version":"0.1.2","description":"Parse e-mail addresses","main":"index.js","scripts":{"test":"nodeunit test.js"},"repository":"","author":{"name":"Andris Reinman"},"license":"MIT","devDependencies":{"nodeunit":"*"},"_id":"addressparser@0.1.2","dist":{"shasum":"0a13e123c4bb31ee355033d34d29949bce39f066","tarball":"https://registry.npmjs.org/addressparser/-/addressparser-0.1.2.tgz","integrity":"sha512-kajTHWhMGZToMt8BAR95pcShlZbvWILSbkywyQlki3u6ScNajboqBiev6yHvVlRr8wHrebsSa+p3ZW0/3EmCtw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEVAzAi3Xf/1dbdIIi4axJrAputHEJAaChoK88Ld908AIhAPsG4JyN+3d+ONC25dmn0dR1UUW4AIpEjSns9HVIVF6j"}]},"maintainers":[{"name":"andris","email":"andris@node.ee"}]},"0.1.3":{"name":"addressparser","version":"0.1.3","description":"Parse e-mail addresses","main":"index.js","scripts":{"test":"nodeunit test.js"},"repository":"","author":{"name":"Andris Reinman"},"license":"MIT","devDependencies":{"nodeunit":"*"},"_id":"addressparser@0.1.3","dist":{"shasum":"9e9ab43d257e1ae784e1df5f580c9f5240f58874","tarball":"https://registry.npmjs.org/addressparser/-/addressparser-0.1.3.tgz","integrity":"sha512-c9UMtMY9vRM5/QGeuTOKi+Qmmx0d9heuHej5RKzf29YggwFHLTTwnXD4UBN53OfoLnTs+Eotevh/qfooBL18gA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDBhTpDcMwyGLv6HGYUXR9zsFOUIxDFVuVBTMOwGeHnvAiApUFgVw5zTeBcKUBiCD607LvFXQwQTBodkXE8FwzoFjw=="}]},"_npmVersion":"1.1.61","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@node.ee"}]},"0.2.0":{"name":"addressparser","version":"0.2.0","description":"Parse e-mail addresses","main":"index.js","scripts":{"test":"nodeunit test.js"},"repository":{"type":"git","url":"https://github.com/andris9/addressparser.git"},"author":{"name":"Andris Reinman"},"license":"MIT","devDependencies":{"nodeunit":"*"},"bugs":{"url":"https://github.com/andris9/addressparser/issues"},"_id":"addressparser@0.2.0","dist":{"shasum":"853383313b7b60259ba4558ef1c0bc30efac08fc","tarball":"https://registry.npmjs.org/addressparser/-/addressparser-0.2.0.tgz","integrity":"sha512-85uZHlFnXk7PxW/Mh7HyvWqDkTAmV6vVgFBx0YsdMrxPebKGVqYNHo8RJOTJFPJ5z8RbQ2+zjV36fBGPIhWijA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEYFMEw9GtFkanVPfr4+LIg6UrjBZH8ZMD5udzHaq1S1AiBL83IBUpDv3Q4MINjONhQnZPQ9xug+WqnazzTQHEvmwg=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@node.ee"}]},"0.2.1":{"name":"addressparser","version":"0.2.1","description":"Parse e-mail addresses","main":"index.js","scripts":{"test":"nodeunit test.js"},"repository":{"type":"git","url":"https://github.com/andris9/addressparser.git"},"author":{"name":"Andris Reinman"},"license":"MIT","devDependencies":{"nodeunit":"*"},"bugs":{"url":"https://github.com/andris9/addressparser/issues"},"homepage":"https://github.com/andris9/addressparser","_id":"addressparser@0.2.1","dist":{"shasum":"d11a5b2eeda04cfefebdf3196c10ae13db6cd607","tarball":"https://registry.npmjs.org/addressparser/-/addressparser-0.2.1.tgz","integrity":"sha512-znTNuVLOEDXQs5h48BeF0ZJwhGOOq0KEhlmFSLtYkPa4EEd48OoMxGo12ClI39rgU2Qx+/KwB7cINhC5/NGEdA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHRz7waTh1+fQPPILF/BadWS7F6IQlD5ee+/JCizwJk7AiEAp9qE5MZjoBY3ets0zxGAhN4r2J61A3vKV1GlbO2AaP0="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@node.ee"}]},"0.3.0":{"name":"addressparser","version":"0.3.0","description":"Parse e-mail addresses","main":"src/addressparser.js","repository":{"type":"git","url":"https://github.com/andris9/addressparser.git"},"author":{"name":"Andris Reinman"},"license":"MIT","scripts":{"test":"grunt"},"devDependencies":{"chai":"~1.8.1","grunt":"~0.4.1","grunt-contrib-jshint":"~0.8.0","grunt-mocha-test":"~0.10.0"},"bugs":{"url":"https://github.com/andris9/addressparser/issues"},"homepage":"https://github.com/andris9/addressparser","_id":"addressparser@0.3.0","dist":{"shasum":"8d9b1bdf3661588ce017a4d8d9cf945a6c665558","tarball":"https://registry.npmjs.org/addressparser/-/addressparser-0.3.0.tgz","integrity":"sha512-qba+5hikFsHFwH080XtwIOAG44qOpbWH4Xuq8ALnRiJx6f910EKRNOKItNIBKwWZ0tZC4M8J88JK8df8Xt7KSQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBE/oZLZWhdYy8FRyKPVJMPsdqDfuwCYlmbAmW0DfYTyAiBnqKtKhjQVtv647892VVMeGKOQjViQnEWojWO/kkFkRQ=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@node.ee"}]},"0.3.1":{"name":"addressparser","version":"0.3.1","description":"Parse e-mail addresses","main":"src/addressparser.js","repository":{"type":"git","url":"https://github.com/andris9/addressparser.git"},"author":{"name":"Andris Reinman"},"license":"MIT","scripts":{"test":"grunt"},"devDependencies":{"chai":"~1.8.1","grunt":"~0.4.1","grunt-contrib-jshint":"~0.8.0","grunt-mocha-test":"~0.10.0"},"bugs":{"url":"https://github.com/andris9/addressparser/issues"},"homepage":"https://github.com/andris9/addressparser","_id":"addressparser@0.3.1","dist":{"shasum":"f9c44caa6c882b54855e8ae324c2d51e541bded4","tarball":"https://registry.npmjs.org/addressparser/-/addressparser-0.3.1.tgz","integrity":"sha512-b1bYutJzKMLteeFGbT+J+ut1IAF7Fl+Lg5G+pmxrkU+xfN8fA245E4fXusrVv6bwvC4de4la1JmBdnk7IoTekg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCykTN+JcQV2YyPlelN/qLQ3y56rFCzSS8m13jIDMhZ7wIgFo/a+au9pi48bs8YiTP6OqS0PK7sUSRQBUQpuq9u8tE="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@node.ee"}]},"0.3.2":{"name":"addressparser","version":"0.3.2","description":"Parse e-mail addresses","main":"src/addressparser.js","repository":{"type":"git","url":"https://github.com/andris9/addressparser.git"},"author":{"name":"Andris Reinman"},"license":"MIT","scripts":{"test":"grunt"},"devDependencies":{"chai":"^1.10.0","grunt":"^0.4.5","grunt-contrib-jshint":"^0.10.0","grunt-mocha-test":"^0.12.4","mocha":"^2.1.0"},"bugs":{"url":"https://github.com/andris9/addressparser/issues"},"homepage":"https://github.com/andris9/addressparser","_id":"addressparser@0.3.2","dist":{"shasum":"59873f35e8fcf6c7361c10239261d76e15348bb2","tarball":"https://registry.npmjs.org/addressparser/-/addressparser-0.3.2.tgz","integrity":"sha512-fDlslCJpojuY1cnb7tY7COAriA7cdSzDiWyrWNdFn7Cjd+jrEgZavqkOgD/wg+eH765YPnQjqlS88OL/Q0Qtkg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBpoKAPVz3ee5JkRxCjz6MxxtjxUVBUDPAeBSk/QueYGAiB4K2Rhiw6tNDJLLnrOzmN1z6icKxCy5Q0dOBuUYznOgg=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@node.ee"}]},"1.0.0":{"name":"addressparser","version":"1.0.0","description":"Parse e-mail addresses","main":"lib/addressparser.js","repository":{"type":"git","url":"git+https://github.com/andris9/addressparser.git"},"author":{"name":"Andris Reinman"},"license":"MIT","scripts":{"test":"grunt"},"devDependencies":{"chai":"^3.4.1","grunt":"^0.4.5","grunt-eslint":"^17.3.1","grunt-mocha-test":"^0.12.7","mocha":"^2.3.4"},"gitHead":"4e65265502a0d37f12a85421f06a717f8a58ac24","bugs":{"url":"https://github.com/andris9/addressparser/issues"},"homepage":"https://github.com/andris9/addressparser#readme","_id":"addressparser@1.0.0","_shasum":"8a08575430014976686aa1b76e0c74c5a7702a3e","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.4.0","_npmUser":{"name":"andris","email":"andris@kreata.ee"},"dist":{"shasum":"8a08575430014976686aa1b76e0c74c5a7702a3e","tarball":"https://registry.npmjs.org/addressparser/-/addressparser-1.0.0.tgz","integrity":"sha512-saeGoN2FuFHdu3y89eXmk6M05KWluO12NTnxeOyTngNqqlI/zouEBlc/SUhNYiGPFPG3pnILWRSQxTVqt0loxg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHKyOjUdG3DFPK00Z2+zWK+w4jv6BT2as85rat8JyJ0fAiEAmPhAvt7k8VmjMCePg1Mdkj5VzlR66LLcDX3Ghr/pbBY="}]},"maintainers":[{"name":"andris","email":"andris@node.ee"}]},"1.0.1":{"name":"addressparser","version":"1.0.1","description":"Parse e-mail addresses","main":"lib/addressparser.js","repository":{"type":"git","url":"git+https://github.com/andris9/addressparser.git"},"author":{"name":"Andris Reinman"},"license":"MIT","scripts":{"test":"grunt"},"devDependencies":{"chai":"^3.5.0","grunt":"^0.4.5","grunt-eslint":"^17.3.1","grunt-mocha-test":"^0.12.7","mocha":"^2.4.5"},"gitHead":"a0c7c66fe90950d75c14edb1116da8229a10f84b","bugs":{"url":"https://github.com/andris9/addressparser/issues"},"homepage":"https://github.com/andris9/addressparser#readme","_id":"addressparser@1.0.1","_shasum":"47afbe1a2a9262191db6838e4fd1d39b40821746","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.5.0","_npmUser":{"name":"andris","email":"andris@kreata.ee"},"dist":{"shasum":"47afbe1a2a9262191db6838e4fd1d39b40821746","tarball":"https://registry.npmjs.org/addressparser/-/addressparser-1.0.1.tgz","integrity":"sha512-aQX7AISOMM7HFE0iZ3+YnD07oIeJqWGVnJ+ZIKaBZAk03ftmVYVqsGas/rbXKR21n4D/hKCSHypvcyOkds/xzg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMm1ArJWqE7V7ThGoXMlg9LfjnA3QNrtWesfRCvUj0uAIhAIob+fA9HaXhLjkn+tY7K/u+61sMYTruZ4gnbSfcvehO"}]},"maintainers":[{"name":"andris","email":"andris@node.ee"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/addressparser-1.0.1.tgz_1454787525160_0.050130771240219474"}}},"readme":"# addressparser\n\nParse e-mail address fields. Input can be a single address (`\"andris@kreata.ee\"`), a formatted address (`\"Andris Reinman <andris@kreata.ee>\"`), comma separated list of addresses (`\"andris@kreata.ee, andris.reinman@kreata.ee\"`), an address group (`\"disclosed-recipients:andris@kreata.ee;\"`) or a mix of all the formats.\n\nIn addition to comma the semicolon is treated as the list delimiter as well (except when used in the group syntax), so a value `\"andris@kreata.ee; andris.reinman@kreata.ee\"` is identical to `\"andris@kreata.ee, andris.reinman@kreata.ee\"`.\n\n## Installation\n\nInstall with npm\n\n```\nnpm install addressparser\n```\n\n## Usage\n\nInclude the module\n\n```javascript\nvar addressparser = require('addressparser');\n```\n\nParse some address strings with `addressparser(field)`\n\n```javascript\nvar addresses = addressparser('andris <andris@tr.ee>');\nconsole.log(addresses); // [{name: \"andris\", address:\"andris@tr.ee\"}]\n```\n\nAnd when using groups\n\n```javascript\naddressparser('Composers:\"Bach, Sebastian\" <sebu@example.com>, mozart@example.com (Mozzie);');\n```\n\nthe result would be\n\n```\n[\n    {\n        name: \"Composers\",\n        group: [\n            {\n                address: \"sebu@example.com\",\n                name: \"Bach, Sebastian\"\n            },\n            {\n                address: \"mozart@example.com\",\n                name: \"Mozzie\"\n            }\n        ]\n    }\n]\n```\n\n> Be prepared though that groups might be nested.\n\n## Notes\n\nThis module does not decode any mime-word or punycode encoded strings, it is only a basic parser for parsing the base data, you need to decode the encoded parts later by yourself\n\n## License\n\n**MIT**","maintainers":[{"name":"andris","email":"andris@node.ee"}],"time":{"modified":"2022-06-13T02:26:08.165Z","created":"2012-08-30T12:04:25.919Z","0.1.0":"2012-08-30T12:04:27.538Z","0.1.1":"2012-08-31T11:46:11.319Z","0.1.2":"2012-09-10T19:38:02.176Z","0.1.3":"2012-09-24T08:56:40.204Z","0.2.0":"2013-10-30T08:37:06.082Z","0.2.1":"2014-02-18T06:24:04.924Z","0.3.0":"2014-06-13T09:46:33.064Z","0.3.1":"2014-06-13T09:54:15.734Z","0.3.2":"2015-01-07T15:12:50.856Z","1.0.0":"2016-01-11T10:19:28.813Z","1.0.1":"2016-02-06T19:38:47.578Z"},"author":{"name":"Andris Reinman"},"repository":{"type":"git","url":"git+https://github.com/andris9/addressparser.git"},"readmeFilename":"README.md","homepage":"https://github.com/andris9/addressparser#readme","bugs":{"url":"https://github.com/andris9/addressparser/issues"},"license":"MIT","users":{"alejcerro":true,"opensio":true,"vikatt":true}}