UNPKG

yunlongzha_try_nodejs

Version:

try it

1 lines 8.82 kB
{"_id":"addressparser","_rev":"20-0f36e082b6b4d076cd706c51272275cd","name":"addressparser","description":"Parse e-mail addresses","dist-tags":{"latest":"0.3.2"},"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":"http://registry.npmjs.org/addressparser/-/addressparser-0.1.0.tgz"},"maintainers":[{"name":"andris","email":"andris@node.ee"}],"directories":{}},"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":"http://registry.npmjs.org/addressparser/-/addressparser-0.1.1.tgz"},"maintainers":[{"name":"andris","email":"andris@node.ee"}],"directories":{}},"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":"http://registry.npmjs.org/addressparser/-/addressparser-0.1.2.tgz"},"maintainers":[{"name":"andris","email":"andris@node.ee"}],"directories":{}},"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":"http://registry.npmjs.org/addressparser/-/addressparser-0.1.3.tgz"},"_npmVersion":"1.1.61","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@node.ee"}],"directories":{}},"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":"http://registry.npmjs.org/addressparser/-/addressparser-0.2.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@node.ee"}],"directories":{}},"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":"http://registry.npmjs.org/addressparser/-/addressparser-0.2.1.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@node.ee"}],"directories":{}},"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":"http://registry.npmjs.org/addressparser/-/addressparser-0.3.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@node.ee"}],"directories":{}},"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":"http://registry.npmjs.org/addressparser/-/addressparser-0.3.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@node.ee"}],"directories":{}},"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":"http://registry.npmjs.org/addressparser/-/addressparser-0.3.2.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@node.ee"}],"directories":{}}},"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":"2015-01-07T15:12:50.856Z","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"},"author":{"name":"Andris Reinman"},"repository":{"type":"git","url":"https://github.com/andris9/addressparser.git"},"readmeFilename":"README.md","homepage":"https://github.com/andris9/addressparser","bugs":{"url":"https://github.com/andris9/addressparser/issues"},"license":"MIT","users":{"alejcerro":true},"_attachments":{},"_etag":"\"7RWTJFCB13I8DRBZ8ESSQ01T1\""}