{"_id":"co-urllib","_rev":"376938","name":"co-urllib","description":"co version of urllib","dist-tags":{"latest":"0.2.3"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"time":{"modified":"2021-07-31T15:51:43.000Z","created":"2013-12-31T11:21:20.545Z","0.2.3":"2014-05-30T14:00:50.414Z","0.2.2":"2014-05-12T02:17:42.744Z","0.2.1":"2014-04-11T09:52:52.231Z","0.2.0":"2014-04-08T02:07:15.302Z","0.1.4":"2014-03-26T15:22:55.737Z","0.1.3":"2014-03-14T06:58:11.858Z","0.1.2":"2014-03-13T11:59:17.638Z","0.1.1":"2014-03-13T11:53:24.762Z","0.1.0":"2014-03-13T07:26:30.437Z","0.0.1":"2013-12-31T11:21:20.545Z"},"users":{"yokubee":true},"author":{"name":"dead_horse"},"repository":{"type":"git","url":"git://github.com/cojs/urllib.git"},"versions":{"0.2.3":{"name":"co-urllib","version":"0.2.3","description":"co version of urllib","main":"index.js","scripts":{"test":"make test-all","prepublish":"make clean build"},"repository":{"type":"git","url":"git://github.com/cojs/urllib.git"},"keywords":["co","urllib","http","urlopen","curl","wget","request","https"],"author":{"name":"dead_horse"},"license":"MIT","bugs":{"url":"https://github.com/cojs/urllib/issues"},"homepage":"https://github.com/cojs/urllib","dependencies":{"co-assert-timeout":"~0.0.4","co-readall":"~0.0.1","debug":"~0.8.1","default-user-agent":"~0.0.1","generator-supported":"~0.0.1","thunkify":"~2.1.1"},"devDependencies":{"ali.regenerator":"*","autod":"*","co":"~3.0.6","co-mocha":"*","co-sleep":"~0.0.1","contributors":"*","cov":"*","istanbul-harmony":"*","jshint":"*","koa":"~0.6.0","koa-middlewares":"~0.1.3","mocha":"*","should":"~3.3.1","speeds":"~0.0.1"},"contributors":[{"name":"dead-horse","email":"dead_horse@qq.com","url":"https://github.com/dead-horse"},{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"}],"_id":"co-urllib@0.2.3","dist":{"shasum":"ddebee9d1451715b9e9a1e1dc0bdc19334f15abb","size":11178,"noattachment":false,"key":"/co-urllib/-/co-urllib-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/co-urllib/download/co-urllib-0.2.3.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"directories":{},"publish_time":1401458450414,"_cnpm_publish_time":1401458450414,"_hasShrinkwrap":false},"0.2.2":{"name":"co-urllib","version":"0.2.2","description":"co version of urllib","main":"index.js","scripts":{"test":"make test-all","prepublish":"make clean build"},"repository":{"type":"git","url":"git://github.com/cojs/urllib.git"},"keywords":["co","urllib","http","urlopen","curl","wget","request","https"],"author":{"name":"dead_horse"},"license":"MIT","bugs":{"url":"https://github.com/cojs/urllib/issues"},"homepage":"https://github.com/cojs/urllib","dependencies":{"co-assert-timeout":"~0.0.4","co-readall":"~0.0.1","debug":"~0.8.1","default-user-agent":"~0.0.1","generator-supported":"~0.0.1","thunkify":"~2.1.1"},"devDependencies":{"ali.regenerator":"*","autod":"*","co":"~3.0.6","co-mocha":"*","co-sleep":"~0.0.1","contributors":"*","cov":"*","istanbul-harmony":"*","jshint":"*","koa":"~0.6.0","koa-middlewares":"~0.1.3","mocha":"*","should":"~3.3.1","speeds":"~0.0.1"},"contributors":[{"name":"dead-horse","email":"dead_horse@qq.com","url":"https://github.com/dead-horse"},{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"}],"_id":"co-urllib@0.2.2","dist":{"shasum":"beaa5ce9450aafd5feb07e21bd98f4cbf7f0e610","size":11054,"noattachment":false,"key":"/co-urllib/-/co-urllib-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/co-urllib/download/co-urllib-0.2.2.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"directories":{},"publish_time":1399861062744,"_cnpm_publish_time":1399861062744,"_hasShrinkwrap":false},"0.2.1":{"name":"co-urllib","version":"0.2.1","description":"co version of urllib","main":"index.js","scripts":{"test":"make test-all","prepublish":"make clean build"},"repository":{"type":"git","url":"git://github.com/dead-horse/co-urllib.git"},"keywords":["co","urllib","http","urlopen","curl","wget","request","https"],"author":{"name":"dead_horse"},"license":"MIT","bugs":{"url":"https://github.com/dead-horse/co-urllib/issues"},"homepage":"https://github.com/dead-horse/co-urllib","dependencies":{"co-assert-timeout":"0.0.4","co-readall":"0.0.1","debug":"0.8.0","default-user-agent":"0.0.1","generator-supported":"0.0.1","thunkify":"0.0.1"},"devDependencies":{"ali.regenerator":"*","autod":"*","co":"3.0.5","co-mocha":"*","co-sleep":"0.0.1","contributors":"*","cov":"*","istanbul-harmony":"*","jshint":"*","koa":"0.5.2","koa-middlewares":"0.1.3","mocha":"*","should":"3.3.0","speeds":"0.0.1"},"contributors":[{"name":"dead-horse","email":"dead_horse@qq.com","url":"https://github.com/dead-horse"},{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"}],"_id":"co-urllib@0.2.1","dist":{"shasum":"453e744d317930cea7395d15413953d6f30ac431","size":10926,"noattachment":false,"key":"/co-urllib/-/co-urllib-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/co-urllib/download/co-urllib-0.2.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"directories":{},"publish_time":1397209972231,"_hasShrinkwrap":false,"_cnpm_publish_time":1397209972231},"0.2.0":{"name":"co-urllib","version":"0.2.0","description":"co version of urllib","main":"index.js","scripts":{"test":"make test-all","prepublish":"make clean build"},"repository":{"type":"git","url":"git://github.com/dead-horse/co-urllib.git"},"keywords":["co","urllib","http","urlopen","curl","wget","request","https"],"author":{"name":"dead_horse"},"license":"MIT","bugs":{"url":"https://github.com/dead-horse/co-urllib/issues"},"homepage":"https://github.com/dead-horse/co-urllib","dependencies":{"co-assert-timeout":"0.0.4","co-readall":"0.0.1","debug":"0.8.0","default-user-agent":"0.0.1","generator-supported":"0.0.1","thunkify":"0.0.1"},"devDependencies":{"ali.regenerator":"*","autod":"*","co":"3.0.5","co-mocha":"*","co-sleep":"0.0.1","contributors":"*","cov":"*","istanbul-harmony":"*","jshint":"*","koa":"0.5.2","koa-middlewares":"0.1.3","mocha":"*","should":"3.3.0","speeds":"0.0.1"},"contributors":[{"name":"dead-horse","email":"dead_horse@qq.com","url":"https://github.com/dead-horse"},{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"}],"_id":"co-urllib@0.2.0","dist":{"shasum":"c797a8e37bf897b13b437eeafac3726a19b95dd5","size":10974,"noattachment":false,"key":"/co-urllib/-/co-urllib-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/co-urllib/download/co-urllib-0.2.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"directories":{},"publish_time":1396922835302,"_hasShrinkwrap":false,"_cnpm_publish_time":1396922835302},"0.1.4":{"name":"co-urllib","version":"0.1.4","description":"co version of urllib","main":"index.js","scripts":{"test":"make test-all"},"repository":{"type":"git","url":"git://github.com/dead-horse/co-urllib.git"},"keywords":["co","urllib","http","urlopen","curl","wget","request","https"],"author":{"name":"dead_horse"},"license":"MIT","bugs":{"url":"https://github.com/dead-horse/co-urllib/issues"},"homepage":"https://github.com/dead-horse/co-urllib","dependencies":{"co-assert-timeout":"0.0.4","co-readall":"0.0.1","debug":"0.7.4","default-user-agent":"0.0.1","thunkify":"0.0.1"},"devDependencies":{"autod":"*","co-mocha":"*","co-sleep":"0.0.1","contributors":"*","cov":"*","istanbul-harmony":"*","jshint":"*","koa":"0.5.2","koa-middlewares":"0.1.0","mocha":"*","should":"3.2.0-beta1","speeds":"0.0.1"},"contributors":[{"name":"dead-horse","email":"dead_horse@qq.com","url":"https://github.com/dead-horse"},{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"}],"_id":"co-urllib@0.1.4","dist":{"shasum":"015cd15226e1bb5bc3904be23f7677e934676656","size":6398,"noattachment":false,"key":"/co-urllib/-/co-urllib-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/co-urllib/download/co-urllib-0.1.4.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"directories":{},"publish_time":1395847375737,"_hasShrinkwrap":false,"_cnpm_publish_time":1395847375737},"0.1.3":{"name":"co-urllib","version":"0.1.3","description":"co version of urllib","main":"index.js","scripts":{"test":"make test-all"},"repository":{"type":"git","url":"git://github.com/dead-horse/co-urllib.git"},"keywords":["co","urllib","http","urlopen","curl","wget","request","https"],"author":{"name":"dead_horse"},"license":"MIT","bugs":{"url":"https://github.com/dead-horse/co-urllib/issues"},"homepage":"https://github.com/dead-horse/co-urllib","dependencies":{"co-assert-timeout":"0.0.3","co-readall":"0.0.1","debug":"0.7.4","default-user-agent":"0.0.1","thunkify":"0.0.1"},"devDependencies":{"autod":"*","co":"3.0.4","co-sleep":"0.0.1","contributors":"*","cov":"*","istanbul":"git://github.com/gotwarlost/istanbul.git#harmony","jshint":"*","koa":"0.5.1","koa-middlewares":"0.0.9","mocha":"*","should":"3.1.3","speeds":"0.0.1"},"contributors":[{"name":"dead-horse","email":"dead_horse@qq.com","url":"https://github.com/dead-horse"},{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"}],"_id":"co-urllib@0.1.3","dist":{"shasum":"301b860ca5b52c3f6cdd27343ae1d32bb19f6a18","size":6444,"noattachment":false,"key":"/co-urllib/-/co-urllib-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/co-urllib/download/co-urllib-0.1.3.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"directories":{},"publish_time":1394780291858,"_hasShrinkwrap":false,"_cnpm_publish_time":1394780291858},"0.1.2":{"name":"co-urllib","version":"0.1.2","description":"co version of urllib","main":"index.js","scripts":{"test":"make test-all"},"repository":{"type":"git","url":"git://github.com/dead-horse/co-urllib.git"},"keywords":["co","urllib","http","urlopen","curl","wget","request","https"],"author":{"name":"dead_horse"},"license":"MIT","bugs":{"url":"https://github.com/dead-horse/co-urllib/issues"},"homepage":"https://github.com/dead-horse/co-urllib","dependencies":{"co-assert-timeout":"0.0.3","co-readall":"0.0.1","debug":"0.7.4","default-user-agent":"0.0.1","thunkify":"0.0.1"},"devDependencies":{"autod":"*","co":"3.0.4","co-sleep":"0.0.1","contributors":"*","cov":"*","istanbul":"git://github.com/gotwarlost/istanbul.git#harmony","jshint":"*","koa":"0.5.1","koa-middlewares":"0.0.9","mocha":"*","should":"3.1.3","speeds":"0.0.1"},"contributors":[{"name":"dead-horse","email":"dead_horse@qq.com","url":"https://github.com/dead-horse"},{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"}],"_id":"co-urllib@0.1.2","dist":{"shasum":"72e57f20bf414255fc1bbaaffc2c40188dc8bf8c","size":6416,"noattachment":false,"key":"/co-urllib/-/co-urllib-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/co-urllib/download/co-urllib-0.1.2.tgz"},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"directories":{},"publish_time":1394711957638,"_hasShrinkwrap":false,"_cnpm_publish_time":1394711957638},"0.1.1":{"name":"co-urllib","version":"0.1.1","description":"co version of urllib","main":"index.js","scripts":{"test":"make test-all"},"repository":{"type":"git","url":"git://github.com/dead-horse/co-urllib.git"},"keywords":["co","urllib","http","urlopen","curl","wget","request","https"],"author":{"name":"dead_horse"},"license":"MIT","bugs":{"url":"https://github.com/dead-horse/co-urllib/issues"},"homepage":"https://github.com/dead-horse/co-urllib","dependencies":{"co-assert-timeout":"0.0.3","co-readall":"0.0.1","debug":"0.7.4","default-user-agent":"0.0.1","thunkify":"0.0.1"},"devDependencies":{"autod":"*","co":"3.0.4","co-sleep":"0.0.1","contributors":"*","cov":"*","istanbul":"git://github.com/gotwarlost/istanbul.git#harmony","jshint":"*","koa":"0.5.1","koa-middlewares":"0.0.9","mocha":"*","should":"3.1.3","speeds":"0.0.1"},"contributors":[{"name":"dead-horse","email":"dead_horse@qq.com","url":"https://github.com/dead-horse"},{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"}],"_id":"co-urllib@0.1.1","dist":{"shasum":"8d95ed2961558dc1b05f3447ed81967065d8830f","size":6382,"noattachment":false,"key":"/co-urllib/-/co-urllib-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/co-urllib/download/co-urllib-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"directories":{},"publish_time":1394711604762,"_hasShrinkwrap":false,"_cnpm_publish_time":1394711604762},"0.1.0":{"name":"co-urllib","version":"0.1.0","description":"co version of urllib","main":"index.js","scripts":{"test":"make test-all"},"repository":{"type":"git","url":"git://github.com/dead-horse/co-urllib.git"},"keywords":["co","urllib","http","urlopen","curl","wget","request","https"],"author":{"name":"dead_horse"},"license":"MIT","bugs":{"url":"https://github.com/dead-horse/co-urllib/issues"},"homepage":"https://github.com/dead-horse/co-urllib","dependencies":{"co-assert-timeout":"0.0.3","co-readall":"0.0.1","debug":"0.7.4","default-user-agent":"0.0.1","thunkify":"0.0.1"},"devDependencies":{"autod":"*","co":"3.0.4","co-sleep":"0.0.1","contributors":"*","cov":"*","istanbul":"git://github.com/gotwarlost/istanbul.git#harmony","jshint":"*","koa":"0.5.1","koa-middlewares":"0.0.9","mocha":"*","should":"3.1.3","speeds":"0.0.1"},"_id":"co-urllib@0.1.0","dist":{"shasum":"d1a9728bb095d3002b70a91a0d357ba6bb4beccd","size":6147,"noattachment":false,"key":"/co-urllib/-/co-urllib-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/co-urllib/download/co-urllib-0.1.0.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"directories":{},"publish_time":1394695590437,"_hasShrinkwrap":false,"_cnpm_publish_time":1394695590437},"0.0.1":{"name":"co-urllib","version":"0.0.1","description":"co wrapper for urllib","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/dead-horse/co-urllib.git"},"keywords":["co","urllib","http","urlopen","curl","wget","request","https"],"author":{"name":"dead_horse"},"license":"MIT","bugs":{"url":"https://github.com/dead-horse/co-urllib/issues"},"files":["index.js"],"homepage":"https://github.com/dead-horse/co-urllib","dependencies":{"thunkify":"0.0.1","urllib":"0.5.5"},"devDependencies":{},"_id":"co-urllib@0.0.1","dist":{"shasum":"f3b6d5db5c5f358b6393d0b68ad63e0c0f5802cd","size":1603,"noattachment":false,"key":"/co-urllib/-/co-urllib-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/co-urllib/download/co-urllib-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.22","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"directories":{},"publish_time":1388488880545,"_hasShrinkwrap":false,"_cnpm_publish_time":1388488880545}},"readme":"co-urllib\n=========\n\n[![Build Status](https://travis-ci.org/cojs/urllib.svg)](https://travis-ci.org/cojs/urllib)\n\nco version of [urllib](https://github.com/fengmk2/urllib).\n\nNot just thunkify, `co-urllib.request` is a [Generator](http://wiki.ecmascript.org/doku.php?id=harmony:generators).\n\n[![NPM](https://nodei.co/npm/co-urllib.png?downloads=true)](https://nodei.co/npm/co-urllib/)\n\nCode coverage: [100%](http://qtestbucket.qiniudn.com/cov/html/co-urllib/0.0.1/index.html)\n\n## Usage\n\n```\nvar urllib = require('co-urllib');\nvar co = require('co');\n\nco(function *() {\n  var result = yield urllib.request('http://baidu.com');\n  var data = result.data; // response data\n  var status = result.status; // response status code\n  var headers = result.headers; // response headers\n  console.log(status);\n})();\n```\n\nMore documents, please @see [API of urllib](https://github.com/fengmk2/urllib#api-doc)\n\n## Licences\n\n(The MIT License)\n\nCopyright (c) 2013 - 2014 dead-horse and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_attachments":{},"homepage":"https://github.com/cojs/urllib","bugs":{"url":"https://github.com/cojs/urllib/issues"},"license":"MIT"}