{"_id":"addressparser","_rev":"252134","name":"addressparser","description":"Parse e-mail addresses","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"time":{"modified":"2021-06-03T16:15:27.000Z","created":"2012-08-30T12:04:27.538Z","1.0.1":"2016-02-06T19:38:47.578Z","1.0.0":"2016-01-11T10:19:28.813Z","0.3.2":"2015-01-07T15:12:50.856Z","0.3.1":"2014-06-13T09:54:15.734Z","0.3.0":"2014-06-13T09:46:33.064Z","0.2.1":"2014-02-18T06:24:04.924Z","0.2.0":"2013-10-30T08:37:06.082Z","0.1.3":"2012-09-24T08:56:40.204Z","0.1.2":"2012-09-10T19:38:02.176Z","0.1.1":"2012-08-31T11:46:11.319Z","0.1.0":"2012-08-30T12:04:27.538Z"},"users":{"alejcerro":true,"opensio":true,"vikatt":true},"author":{"name":"Andris Reinman"},"repository":{"type":"git","url":"git+https://github.com/andris9/addressparser.git"},"versions":{"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","size":4284,"noattachment":false,"key":"/addressparser/-/addressparser-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/addressparser/download/addressparser-1.0.1.tgz"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/addressparser-1.0.1.tgz_1454787525160_0.050130771240219474"},"directories":{},"publish_time":1454787527578,"_cnpm_publish_time":1454787527578,"_hasShrinkwrap":false},"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","size":4114,"noattachment":false,"key":"/addressparser/-/addressparser-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/addressparser/download/addressparser-1.0.0.tgz"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"directories":{},"publish_time":1452507568813,"_cnpm_publish_time":1452507568813,"_hasShrinkwrap":false},"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","size":4094,"noattachment":false,"key":"/addressparser/-/addressparser-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/addressparser/download/addressparser-0.3.2.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"directories":{},"publish_time":1420643570856,"_cnpm_publish_time":1420643570856,"_hasShrinkwrap":false},"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","size":2919,"noattachment":false,"key":"/addressparser/-/addressparser-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/addressparser/download/addressparser-0.3.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"directories":{},"publish_time":1402653255734,"_cnpm_publish_time":1402653255734,"_hasShrinkwrap":false},"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","size":3914,"noattachment":false,"key":"/addressparser/-/addressparser-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/addressparser/download/addressparser-0.3.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"directories":{},"publish_time":1402652793064,"_cnpm_publish_time":1402652793064,"_hasShrinkwrap":false},"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","size":3317,"noattachment":false,"key":"/addressparser/-/addressparser-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/addressparser/download/addressparser-0.2.1.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"directories":{},"publish_time":1392704644924,"_hasShrinkwrap":false,"_cnpm_publish_time":1392704644924},"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","size":3217,"noattachment":false,"key":"/addressparser/-/addressparser-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/addressparser/download/addressparser-0.2.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"directories":{},"publish_time":1383122226082,"_hasShrinkwrap":false,"_cnpm_publish_time":1383122226082},"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","size":2981,"noattachment":false,"key":"/addressparser/-/addressparser-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/addressparser/download/addressparser-0.1.3.tgz"},"_npmVersion":"1.1.61","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"directories":{},"publish_time":1348477000204,"_hasShrinkwrap":false,"_cnpm_publish_time":1348477000204},"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","size":2965,"noattachment":false,"key":"/addressparser/-/addressparser-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/addressparser/download/addressparser-0.1.2.tgz"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"directories":{},"publish_time":1347305882176,"_hasShrinkwrap":false,"_cnpm_publish_time":1347305882176},"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","size":2956,"noattachment":false,"key":"/addressparser/-/addressparser-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/addressparser/download/addressparser-0.1.1.tgz"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"directories":{},"publish_time":1346413571319,"_hasShrinkwrap":false,"_cnpm_publish_time":1346413571319},"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","size":2912,"noattachment":false,"key":"/addressparser/-/addressparser-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/addressparser/download/addressparser-0.1.0.tgz"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"directories":{},"publish_time":1346328267538,"_hasShrinkwrap":false,"_cnpm_publish_time":1346328267538}},"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**","_attachments":{},"homepage":"https://github.com/andris9/addressparser#readme","bugs":{"url":"https://github.com/andris9/addressparser/issues"},"license":"MIT"}