{"_id":"co-busboy","_rev":"1397837","name":"co-busboy","description":"Busboy multipart parser as a yieldable","dist-tags":{"latest":"2.0.2"},"maintainers":[{"name":"coderhaoxin","email":"haoxinst@gmail.com"},{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"time":{"modified":"2026-09-14T01:51:58.000Z","created":"2013-12-09T10:45:16.299Z","2.0.2":"2025-02-20T16:28:59.437Z","2.0.1":"2023-05-06T16:43:29.813Z","2.0.0":"2022-09-16T08:15:40.744Z","1.5.0":"2021-04-12T04:02:57.182Z","1.4.1":"2020-07-30T05:20:50.436Z","1.4.0":"2017-10-12T09:17:27.805Z","1.3.1":"2015-09-23T07:55:58.514Z","1.3.0":"2015-03-02T07:09:23.585Z","1.2.1":"2015-02-28T06:32:21.922Z","1.2.0":"2014-08-18T08:44:22.832Z","1.1.0":"2014-08-15T01:44:13.187Z","1.0.2":"2014-03-16T11:23:57.130Z","1.0.1":"2014-03-16T11:17:52.835Z","1.0.0":"2014-02-19T17:12:01.535Z","0.1.1":"2013-12-20T10:29:19.967Z","0.1.0":"2013-12-09T10:45:16.299Z"},"users":{"tunnckocore":true,"infrasp":true},"author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"repository":{"type":"git","url":"git+https://github.com/cojs/co-busboy.git"},"versions":{"2.0.2":{"name":"co-busboy","description":"Busboy multipart parser as a yieldable","version":"2.0.2","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cojs/co-busboy.git"},"bugs":{"url":"https://github.com/cojs/co-busboy/issues"},"engines":{"node":">= 14.0.0"},"dependencies":{"black-hole-stream":"~0.0.1","busboy":"^1.6.0","chan":"^0.6.1","inflation":"^2.0.0"},"devDependencies":{"c8":"^7.12.0","co":"^4.6.0","formstream":"^1.0.0","mocha":"^10.0.0"},"scripts":{"test":"mocha **/*.test.js","lint":"echo 'ignore'","ci":"c8 npm test"},"gitHead":"8281ab6d55daa8e793abb93e16ecb4ffa3a1b834","homepage":"https://github.com/cojs/co-busboy#readme","_id":"co-busboy@2.0.2","_nodeVersion":"14.21.3","_npmVersion":"6.14.18","dist":{"integrity":"sha512-xntc6PdplMQ9M92T5aKWRu8OBh4CbQcLHPnf2K3c+rD2xhAJcIjC5liblUquxDGTErsnHadMOsCcd6xhnpPAFA==","shasum":"89d17c2103ac8c7247a7336413721a34b7e900d8","tarball":"http://registry-npm.ywwl.com/co-busboy/download/co-busboy-2.0.2.tgz","fileCount":4,"unpackedSize":13361,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGKMu2hqCIih1/NUlI6iYUUhzieWxRhihNUX5ddd/rT2AiEAxn+ia3P0AeMKoUwpKK0rWkJhjIcxfgoulPhV0Qxvc58="}],"size":4932,"noattachment":false,"key":"/co-busboy/-/co-busboy-2.0.2.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"coderhaoxin","email":"haoxinst@gmail.com"},{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/co-busboy_2.0.2_1740068939224_0.41239331073943775"},"_hasShrinkwrap":false,"publish_time":1740068939437,"_cnpm_publish_time":1740068939437},"2.0.1":{"name":"co-busboy","description":"Busboy multipart parser as a yieldable","version":"2.0.1","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cojs/co-busboy.git"},"bugs":{"url":"https://github.com/cojs/co-busboy/issues"},"engines":{"node":">= 14.0.0"},"dependencies":{"black-hole-stream":"~0.0.1","busboy":"^1.6.0","chan":"^0.6.1","inflation":"^2.0.0"},"devDependencies":{"c8":"^7.12.0","co":"^4.6.0","formstream":"^1.0.0","mocha":"^10.0.0"},"scripts":{"test":"mocha **/*.test.js","lint":"echo 'ignore'","ci":"c8 npm test"},"gitHead":"60600956f98d3603901eebbaed748bd051aea679","homepage":"https://github.com/cojs/co-busboy#readme","_id":"co-busboy@2.0.1","_nodeVersion":"18.16.0","_npmVersion":"6.14.18","dist":{"integrity":"sha512-GsY4TVm4Njqx3MMW/n+Z3e5Yop/4uGhgiE77H43DOMlOAyqBs2raOOuQ1VzQFnfna43ApRILFIs6mtcO7sBbuw==","shasum":"16ba5d27d51699f04564bdcb4965aa923763c310","tarball":"http://registry-npm.ywwl.com/co-busboy/download/co-busboy-2.0.1.tgz","fileCount":4,"unpackedSize":12531,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDm2E6Y84oJ/W7tFgxYF63o7yxEfGIOaOPvySWcf4GOcAIhANPo366dmZZuYSsUvb1h7Xp/I+vgre/I7svcd14qEk2Q"}],"size":4661,"noattachment":false,"key":"/co-busboy/-/co-busboy-2.0.1.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"coderhaoxin","email":"haoxinst@gmail.com"},{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/co-busboy_2.0.1_1683391409628_0.9534357817684336"},"_hasShrinkwrap":false,"publish_time":1683391409813,"_cnpm_publish_time":1683391409813},"2.0.0":{"name":"co-busboy","description":"Busboy multipart parser as a yieldable","version":"2.0.0","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cojs/co-busboy.git"},"bugs":{"url":"https://github.com/cojs/co-busboy/issues"},"engines":{"node":">= 14.0.0"},"dependencies":{"black-hole-stream":"~0.0.1","busboy":"^1.6.0","chan":"^0.6.1","inflation":"^2.0.0"},"devDependencies":{"c8":"^7.12.0","co":"^4.6.0","formstream":"^1.0.0","mocha":"^10.0.0"},"scripts":{"test":"mocha **/*.test.js","ci":"c8 npm test"},"gitHead":"9a01eb639da0b92532433f68862efd7bc6c05c89","homepage":"https://github.com/cojs/co-busboy#readme","_id":"co-busboy@2.0.0","_nodeVersion":"16.2.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-8dxqmlXGoMMfZXSl7/1lbTBXK0Mx/B1kB/f827FtQPZverxTpZVHQK93WOaTL26NNQvvL+q9xZbCtupWn5MU0A==","shasum":"6472ddd0267420eab4c3735393ef243008943470","tarball":"http://registry-npm.ywwl.com/co-busboy/download/co-busboy-2.0.0.tgz","fileCount":4,"unpackedSize":12113,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTblB84VkRLcxfdT+/c+aloFprjKThIde+vjRjG93plwIgL0l5z5yxoEQbRiUg37ciKBrufzHBmrfJE9lfDGFVMBM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjJDCsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqUyRAAiv2uyaHjUXVUSB4ccl+Zu80QWpg6k2QOqEM0pdmaPs1IZ97F\r\nhosHTameP3lLsL5xWZi7l+3X9FY8vtpCyKUsTUKLo/5G5imTR4mvY8148Pmi\r\nxpE2GswvccdaDt41SYG29kfxljsfvVE/pL/EjPAQOG98Ypi9cdY2QyILwqWL\r\nX+0LkAAXcL6oDkIMlc81djCPUe8mNSomvX0H63JSleQU1jUuLbUksA7KOWG0\r\n0lFpztPDqbDQZs3PRUGzg2yGx7ES9wFdqEhjM3V5EVCvF1eKe6A4rBzKRU74\r\n5eAJnO5qtR2HKXkAhSuX8GhxEE+6wuEpLg+zt+oa3D3NXTfJ/wOkEJBUvSEn\r\nxH1EZG5+sLtWxQ2QL2GSPNCCq5pJTBodhTczSLZO+Trm78Ev2jKPehSHn8jp\r\nWT9TXmWsolZS3z18FDQt3ys+vy0UOVcXjOWqIudvxLeCvij2CSSCF8Ig1jp8\r\ndcDjMc8S/7UauHJY4GBKqfhHJFxwi49M2mxhxtcuD9LCyEi2PHDhAEDDjMfa\r\nKlMIBuwf7mTg2zDL2W29AHu/GPL9nzLuydVc/U1UoCX8vHju8LTthjGjdCzM\r\nQR7Gn1IHB1Pg59aMQSuxtr7cQytx/I/6E5VTn7gDn7BqV7vozfU554yE5HYK\r\napoR8sRceDusCpynM7xYGdFcxYBiym70dX4=\r\n=PFqC\r\n-----END PGP SIGNATURE-----\r\n","size":4533,"noattachment":false,"key":"/co-busboy/-/co-busboy-2.0.0.tgz"},"_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"directories":{},"maintainers":[{"name":"coderhaoxin","email":"haoxinst@gmail.com"},{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/co-busboy_2.0.0_1663316140579_0.3832164888991312"},"_hasShrinkwrap":false,"publish_time":1663316140744,"_cnpm_publish_time":1663316140744},"1.5.0":{"name":"co-busboy","description":"Busboy multipart parser as a yieldable","version":"1.5.0","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cojs/co-busboy.git"},"bugs":{"url":"https://github.com/cojs/co-busboy/issues"},"dependencies":{"black-hole-stream":"~0.0.1","busboy":"^0.2.8","chan":"^0.6.1","inflation":"^2.0.0"},"devDependencies":{"co":"^4.6.0","formstream":"~1.0.0","istanbul":"^0.4.5","mocha":"^4.0.1"},"scripts":{"test":"NODE_ENV=test mocha --harmony --reporter spec --bail","test-cov":"NODE_ENV=test istanbul cover -x test.js _mocha -- --reporter spec --bail"},"gitHead":"86605c8224e5f4f7c96bbf97124baed00d2dc5e7","homepage":"https://github.com/cojs/co-busboy#readme","_id":"co-busboy@1.5.0","_nodeVersion":"10.16.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-FCI+YRNcdPt1pH+/5jSHCP0goJpf8vpuKN52gFJy0Az9dnoomdT976O1PcldzOn+MQcYI6xT2lI1lt3Co1C9IA==","shasum":"637e46a6f7e87c0c64b03a1b9e60be3eb1b4dca4","tarball":"http://registry-npm.ywwl.com/co-busboy/download/co-busboy-1.5.0.tgz","fileCount":4,"unpackedSize":11773,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgc8ZxCRA9TVsSAnZWagAAdtwQAIc3WzPwDmBAawd6dEBq\nmB+EOUebYlB58WaHMnrDAPKpnBsAg8pDujXUyjv+Hn2QuuIzA+ZwbqxLLjTs\nPMOlMDFB3x0s3bEhzVdJDEetrMpIdhLh8LEbN1P3gjgXAPncoHfwFvqrFlf5\nZrswVJdxn6UXIaczv47Fa86zuBmHmw+N0Xkuqo9uedOOcws6KnajDVQ3mWrA\nEolgt54dItacD2FblkQAcKSz3UMKOb+7RYN8fzuK9t8sizh5LP4z8+H8KrIo\nk71puILa5GnnGwYjOHarfcI99Ypek/MjRdsYEuq1k080/d+urbpj5GYDeI0S\nV4qD2c/BBgxx26Nwl323vbeQVdKmaR2ZnUTUaZWVuHU3oxc532v4TsQkQZb1\nty+QYkQ6q3zu8HPeMf4f4IRItVrjmla3N8LNMwI4xWa4S9QnRGNpKMk7Pmk3\nPEdJYOfixRqWnToVion9JDUo7LHr17Myr1/SBjke1uEbjlGwOrg90IkT/kUe\nlDMPmyC5eUmyeCrhxw/EY2qHekZwNjQV5VR14i4gXFdPLQHGNh4UIJYdJwxt\nCydrmP3pBjp2iGznshCE6d3F8x3q7z+uR7GW184VggmEdF+k4sZyOo3cZk/I\nt/4Pbtf5WTUkGtY8cW7aQjfX4B2c0k5qfRLBgU2I5KIn4MejSZC9Vm3/ESpj\nKiy7\r\n=A0vA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCj1vq1sP655nIGmMCD1c0Z4cipKV5l3HfNdsUJymzwUwIgAsLvMFkTA5cbSZng0sIvQHflGA5esXGDxpxV6WpxcaQ="}],"size":4396,"noattachment":false,"key":"/co-busboy/-/co-busboy-1.5.0.tgz"},"_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"directories":{},"maintainers":[{"name":"coderhaoxin","email":"haoxinst@gmail.com"},{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/co-busboy_1.5.0_1618200176953_0.5732611962168661"},"_hasShrinkwrap":false,"publish_time":1618200177182,"_cnpm_publish_time":1618200177182},"1.4.1":{"name":"co-busboy","description":"Busboy multipart parser as a yieldable","version":"1.4.1","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cojs/co-busboy.git"},"bugs":{"url":"https://github.com/cojs/co-busboy/issues"},"dependencies":{"black-hole-stream":"~0.0.1","busboy":"^0.2.8","chan":"^0.6.1"},"devDependencies":{"co":"^4.6.0","formstream":"~1.0.0","istanbul":"^0.4.5","mocha":"^4.0.1"},"scripts":{"test":"NODE_ENV=test mocha --harmony --reporter spec --bail","test-cov":"NODE_ENV=test istanbul cover -x test.js _mocha -- --reporter spec --bail"},"gitHead":"888fd3508658acfd7a45b475938c0f29db3db4c7","homepage":"https://github.com/cojs/co-busboy#readme","_id":"co-busboy@1.4.1","_nodeVersion":"10.16.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-ec1GTa1psuvngN+821rEYeEahresYHzUB74f6kRzaoD4ZcmMuhJkgVns9YW9Zt2cgcQVtGOFraRzJscO8zbDyw==","shasum":"16e8e1e6794943dd1e9c29b93307652f6ad44757","tarball":"http://registry-npm.ywwl.com/co-busboy/download/co-busboy-1.4.1.tgz","fileCount":4,"unpackedSize":11468,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIliyCRA9TVsSAnZWagAAnqUP/1bV28s31/3/I46VvIDj\nbQjtcpEOB1fpn/4FQg/jaHT210yNwCTuoHFcxPiqftvKNgRnd4LfWuoSMlkc\nY/iMNbCrvp4lK5x2Im2Pz05cL9LsvQX7erYaRIgRZPZ3wtI7vf/n6eERivMK\nFa6wIaAtlwdNVbqHj8dxhsV0FzetBCtcsWYtoJgfOQNwoqHPOZZ5ZmshdtM1\nR/fASefp1wWwxeqlWBkApaRgxY6pQpigOy7RlZaspj4JGx5P5W1wGN7Ojqd8\nki411XTwRvu8QKwKsmyy0UpFUjsA2NSH9MMv2JStVfxjQXIvJny3MMUeZs7s\nueYUwIohF+hgFL920IvfqBS/POMWoR4lVn7G12m4hf2Rmfn1Zs4TLtCnynsr\nEUBRVVOiJf1dJCwvUSF7gwBeFi8Gj/ci2fx2zSoaRgQGmX3VNhq45adB3UZD\ndQK0t12Gcj30Ni5oilrmgQBJGTjIYDkxJ7hKF2mzifSEzNe9zhEZt7odYupe\nOlsGtBhg6hg7ii1MsV5yVATIEk+VREpHGBl6b1DfbOij+7oF4lP92n2dEwCa\nN3Z7wJTAGKGDNltTseK3jL2UHEAuvKIJ3LAiA+GSRfN8wTiTwVsPrUmAO9RU\nvvdPesQU2R3PyvVrb4YWA24gHaD2ObdL9G1x6GDl1zOQiRFqiuZt3RXCw5iw\nY0qF\r\n=kQva\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHiKhkAmJmQK0qDQEBW+p9Ue16Ilk7EC8S3UqVZz6WjFAiEAyV/hk9Bvpf+BK7cEmGrl2zaK9uB6o/o0wCbPK+j7hJA="}],"size":4284,"noattachment":false,"key":"/co-busboy/-/co-busboy-1.4.1.tgz"},"maintainers":[{"email":"haoxins@outlook.com","name":"coderhaoxin"},{"email":"dead_horse@qq.com","name":"dead_horse"},{"email":"eivind.fjeldstad@gmail.com","name":"eivifj"},{"email":"fengmk2@gmail.com","name":"fengmk2"},{"email":"jonathanrichardong@gmail.com","name":"jongleberry"},{"email":"tj@vision-media.ca","name":"tjholowaychuk"}],"_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/co-busboy_1.4.1_1596086450333_0.10038048849909198"},"_hasShrinkwrap":false,"publish_time":1596086450436,"_cnpm_publish_time":1596086450436},"1.4.0":{"name":"co-busboy","description":"Busboy multipart parser as a yieldable","version":"1.4.0","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cojs/co-busboy.git"},"bugs":{"url":"https://github.com/cojs/co-busboy/issues"},"dependencies":{"black-hole-stream":"~0.0.1","busboy":"^0.2.8","chan":"^0.6.1"},"devDependencies":{"co":"*","formstream":"~1.0.0","istanbul":"*","mocha":"*"},"scripts":{"test":"NODE_ENV=test mocha --harmony --reporter spec --bail","test-cov":"NODE_ENV=test istanbul cover -x test.js _mocha -- --reporter spec --bail"},"files":["index.js"],"gitHead":"b73f8e1ce44c3c6dda0dfcf5bf9b50fe5d70fc00","homepage":"https://github.com/cojs/co-busboy#readme","_id":"co-busboy@1.4.0","_npmVersion":"5.4.2","_nodeVersion":"8.4.0","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"integrity":"sha512-CLUXiG53zISZQ49xAsBeGfOh/9UZ9MbmjbQv0SckKmLRZs6U4jQrTMrEA8jzL6mJxJyFhCqQL1QLZINoyB6fAg==","shasum":"ac9b85c4a966f03b7df55d53746a0dc9c93fa741","tarball":"http://registry-npm.ywwl.com/co-busboy/download/co-busboy-1.4.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIdnd4MetCW/3d28/po5rgc4zKbkQVR/a5jiQpnIwxYQIhAP0SgMGmBKJCAisajD+P1gGTuPy1m8uF1KEVjPlEUZYl"}],"size":4176,"noattachment":false,"key":"/co-busboy/-/co-busboy-1.4.0.tgz"},"maintainers":[{"email":"jonathanrichardong@gmail.com","name":"jongleberry"},{"email":"eivind.fjeldstad@gmail.com","name":"eivifj"},{"email":"fengmk2@gmail.com","name":"fengmk2"},{"email":"tj@vision-media.ca","name":"tjholowaychuk"},{"email":"dead_horse@qq.com","name":"dead_horse"},{"email":"haoxins@outlook.com","name":"coderhaoxin"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/co-busboy-1.4.0.tgz_1507799847735_0.39237319957464933"},"directories":{},"publish_time":1507799847805,"_cnpm_publish_time":1507799847805},"1.3.1":{"name":"co-busboy","description":"Busboy multipart parser as a yieldable","version":"1.3.1","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cojs/co-busboy.git"},"bugs":{"url":"https://github.com/cojs/co-busboy/issues"},"dependencies":{"black-hole-stream":"~0.0.1","busboy":"^0.2.8","chan":"^0.6.1"},"devDependencies":{"co":"*","formstream":"~1.0.0","istanbul":"*","mocha":"*"},"scripts":{"test":"make test","test-cov":"make test-cov"},"files":["index.js"],"gitHead":"2a5976a549c245b84dbf5f20231714e7ec12356e","homepage":"https://github.com/cojs/co-busboy#readme","_id":"co-busboy@1.3.1","_shasum":"4faa511a7bd5535b291fb0aa29663cfeaf672806","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.1.0","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"coderhaoxin","email":"coderhaoxin@outlook.com"}],"dist":{"shasum":"4faa511a7bd5535b291fb0aa29663cfeaf672806","tarball":"http://registry-npm.ywwl.com/co-busboy/download/co-busboy-1.3.1.tgz","integrity":"sha512-LLc0XVt3GcpmU8N/kUVuLXa1WEyqi9vwPxzWJ0VXAlqmgItkOWP4keoQvZrNdXDDpjnLg6g/55QFOtLAu5kSKQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOkyadYiJ+s6Dkjx+VsdMfNAcUT8LmtqaqHAqQP02E4QIgdpmrLwpPeZT65KbWBc9Wf//8MGoxzwULz3YpCAeZ3lg="}],"size":3750,"noattachment":false,"key":"/co-busboy/-/co-busboy-1.3.1.tgz"},"directories":{},"publish_time":1442994958514,"_cnpm_publish_time":1442994958514},"1.3.0":{"name":"co-busboy","description":"Busboy multipart parser as a yieldable","version":"1.3.0","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/jonathanong/co-busboy.git"},"bugs":{"url":"https://github.com/jonathanong/co-busboy/issues"},"dependencies":{"busboy":"^0.2.8","chan":"^0.6.1"},"devDependencies":{"co":"*","istanbul-harmony":"*","mocha":"*"},"scripts":{"test":"make test","test-cov":"make test-cov"},"files":["index.js"],"gitHead":"f21020e8209c56a57793c6ed41dadb89fe4d9c08","homepage":"https://github.com/jonathanong/co-busboy","_id":"co-busboy@1.3.0","_shasum":"a0d5f2e7fc47f37adc181103d0d5b54e872340c7","_from":".","_npmVersion":"2.6.0","_nodeVersion":"1.4.1","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"coderhaoxin","email":"coderhaoxin@outlook.com"}],"dist":{"shasum":"a0d5f2e7fc47f37adc181103d0d5b54e872340c7","tarball":"http://registry-npm.ywwl.com/co-busboy/download/co-busboy-1.3.0.tgz","integrity":"sha512-Uvna7ztN4057d108373imdu/ZSwILv7+vd8JjTLkPUC93gHLLHX/7hogBOkw7I9fDhlS/SmPYwRNP3zP+MbZ0A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHcb/ZTwvHREr7Bt43jsWDRo+o8rSjpA53+g24SlxPkgIgIW/IgimICj9W4laxaFgo1XEJKLbwGmR3pLQyGZ33WGY="}],"size":3543,"noattachment":false,"key":"/co-busboy/-/co-busboy-1.3.0.tgz"},"directories":{},"publish_time":1425280163585,"_cnpm_publish_time":1425280163585},"1.2.1":{"name":"co-busboy","description":"Busboy multipart parser as a yieldable","version":"1.2.1","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/jonathanong/co-busboy.git"},"bugs":{"url":"https://github.com/jonathanong/co-busboy/issues"},"dependencies":{"busboy":"^0.2.8","chan":"^0.6.1"},"devDependencies":{"co":"*","mocha":"*","should":"*"},"scripts":{"test":"make test"},"gitHead":"74952b5940868ef787e3e777b21933ce5eea7d1c","homepage":"https://github.com/jonathanong/co-busboy","_id":"co-busboy@1.2.1","_shasum":"4ee641ed4214bd3ecf60042e79980763bb308b5e","_from":".","_npmVersion":"2.6.0","_nodeVersion":"1.4.1","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"coderhaoxin","email":"coderhaoxin@outlook.com"}],"dist":{"shasum":"4ee641ed4214bd3ecf60042e79980763bb308b5e","tarball":"http://registry-npm.ywwl.com/co-busboy/download/co-busboy-1.2.1.tgz","integrity":"sha512-Tn6oJcWO4TOcRQEzShFnnUs1zfXfxD8Bs9LnKay+U2LMDGthGfULWUIRscQ/ujioOZohCsPHzQWZ1Lbn7GBsRg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZMWXRdYTC3K5RQ9Ev4k6sTIBx67gFRSthjRanQwArcwIgMvn4cQU32MIUnp5eEN6rvcO1T+NBptda6PfUVCM5efc="}],"size":3108,"noattachment":false,"key":"/co-busboy/-/co-busboy-1.2.1.tgz"},"directories":{},"publish_time":1425105141922,"_cnpm_publish_time":1425105141922},"1.2.0":{"name":"co-busboy","description":"Busboy multipart parser as a yieldable","version":"1.2.0","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/jonathanong/co-busboy.git"},"bugs":{"url":"https://github.com/jonathanong/co-busboy/issues"},"dependencies":{"busboy":"^0.2.8","chan":"^0.6.1"},"devDependencies":{"co":"*","mocha":"*","should":"*"},"scripts":{"test":"make test"},"homepage":"https://github.com/jonathanong/co-busboy","_id":"co-busboy@1.2.0","_shasum":"b76d59c247b5f8d00306be91a0f435abd01de43c","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"coderhaoxin","email":"coderhaoxin@outlook.com"},"maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"coderhaoxin","email":"coderhaoxin@outlook.com"}],"dist":{"shasum":"b76d59c247b5f8d00306be91a0f435abd01de43c","tarball":"http://registry-npm.ywwl.com/co-busboy/download/co-busboy-1.2.0.tgz","integrity":"sha512-vPNHv58xPOPZUDMIOePramKY8yXTpt6uaOyjm/+KFUkwho+ur/MNqNSjv42Z3qSUj5S8qbs/ssr0WlF65i5lhQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDyImuniH6JXAYQPnVJEeTCg5n6YCpJhsL8TtmqNga6LAiEAl32/MfGmgkJ/KfBcAdjdMF9/h0PorS/uyrrQt6v/ARU="}],"size":3016,"noattachment":false,"key":"/co-busboy/-/co-busboy-1.2.0.tgz"},"directories":{},"publish_time":1408351462832,"_cnpm_publish_time":1408351462832},"1.1.0":{"name":"co-busboy","description":"Busboy multipart parser as a yieldable","version":"1.1.0","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/jonathanong/co-busboy.git"},"bugs":{"url":"https://github.com/jonathanong/co-busboy/issues"},"dependencies":{"busboy":"~0.2.3","chan":"~0.3.0"},"devDependencies":{"co":"*","mocha":"*","should":"*"},"scripts":{"test":"make test"},"homepage":"https://github.com/jonathanong/co-busboy","_id":"co-busboy@1.1.0","_shasum":"fd9ba3c196ed2d03b2770e095fa1899973fe7f11","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"coderhaoxin","email":"coderhaoxin@outlook.com"},"maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"coderhaoxin","email":"coderhaoxin@outlook.com"}],"dist":{"shasum":"fd9ba3c196ed2d03b2770e095fa1899973fe7f11","tarball":"http://registry-npm.ywwl.com/co-busboy/download/co-busboy-1.1.0.tgz","integrity":"sha512-mT/xJ/1ude4RKaD2aTcmPCiocTH5DnhlWGpOxthSHhEcjzi2DAVG+/C2Yhnrh4eNCQhyVfnpGu79JLnGITXwhA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFGw709yPyu/QM7RXKbRgSWnk9mH1yxci2m2AK7sRGz1AiAsxZjfZeQ5yYnnq1s31KWN0edexoce1uQpwsgpuD4/LA=="}],"size":2996,"noattachment":false,"key":"/co-busboy/-/co-busboy-1.1.0.tgz"},"directories":{},"publish_time":1408067053187,"_cnpm_publish_time":1408067053187},"1.0.2":{"name":"co-busboy","description":"Busboy multipart parser as a yieldable","version":"1.0.2","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/jonathanong/co-busboy.git"},"bugs":{"url":"https://github.com/jonathanong/co-busboy/issues"},"dependencies":{"busboy":"~0.2.3","chan":"~0.3.0"},"devDependencies":{"co":"*","mocha":"*","should":"*"},"scripts":{"test":"make test"},"homepage":"https://github.com/jonathanong/co-busboy","_id":"co-busboy@1.0.2","dist":{"shasum":"b3266521674cf7ffd434fed0e2a9fe2eafdc512c","tarball":"http://registry-npm.ywwl.com/co-busboy/download/co-busboy-1.0.2.tgz","integrity":"sha512-wgPlfbXY/eM7S8Z78OBUp5JPQOz0JZt3gnOVFMfrzsnoV84BjIAz9+NkqlvQTB9S6foKU9jMTkS8vANupisl1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGCcskgDTa3shJXNf1PXcYSjGX9hsooyyuDWNGAIMTb9AiEA2VI6Xx5lJ3Uo0Z0ZSiBwAn/iag0VTd7Uk7ICD/J76iQ="}],"size":2781,"noattachment":false,"key":"/co-busboy/-/co-busboy-1.0.2.tgz"},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},"maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"}],"directories":{},"publish_time":1394969037130,"_cnpm_publish_time":1394969037130},"1.0.1":{"name":"co-busboy","description":"Busboy multipart parser as a yieldable","version":"1.0.1","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/jonathanong/co-busboy.git"},"bugs":{"url":"https://github.com/jonathanong/co-busboy/issues"},"dependencies":{"busboy":"~0.2.3","chan":"~0.3.0"},"devDependencies":{"co":"*","mocha":"*","should":"*"},"scripts":{"test":"make test"},"homepage":"https://github.com/jonathanong/co-busboy","_id":"co-busboy@1.0.1","dist":{"shasum":"6066e2d2ed2ebcd8d7412bfe2568bedc0557c16d","tarball":"http://registry-npm.ywwl.com/co-busboy/download/co-busboy-1.0.1.tgz","integrity":"sha512-3WbDdL+P/wkNcPvr+jGSlh2oZfSWTGt347kIB55/BYzRu2Pj0Dxtmmy0RBhlGPuGkMHdWjnG9/fvXf893AD6jw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBBO1+KO0QIFNB0XuasCAxpWv9pfhKDU5NmPLoH56ztCAiEA4nYf4Wo5Q/e5WwGFYzwqRnRkhvtF2z8mWDtBvaSyQCM="}],"size":2778,"noattachment":false,"key":"/co-busboy/-/co-busboy-1.0.1.tgz"},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},"maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"}],"directories":{},"publish_time":1394968672835,"_cnpm_publish_time":1394968672835},"1.0.0":{"name":"co-busboy","description":"Busboy multipart parser as a yieldable","version":"1.0.0","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/jonathanong/co-busboy.git"},"bugs":{"url":"https://github.com/jonathanong/co-busboy/issues"},"dependencies":{"busboy":"~0.1.1","chan":"~0.3.0"},"devDependencies":{"co":"*","mocha":"*","should":"*"},"scripts":{"test":"make test"},"homepage":"https://github.com/jonathanong/co-busboy","_id":"co-busboy@1.0.0","dist":{"shasum":"c13fd3d00f5d24fd8ec7b1e7c2311473a99e0afa","tarball":"http://registry-npm.ywwl.com/co-busboy/download/co-busboy-1.0.0.tgz","integrity":"sha512-PXt9bT2EOsxvOESquQfTE+4CJo67h514NFGGBUNyachh2n95KrJoOU2qrceqjgltOCNEND2E1a59mkbT5UPQqw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7cRmjs70XKSPS/ORzNDaCa0G0Va77vN0wIBmZjADNjAIhAPSN2x5mVhxuWa5Tdk/7HhnPoNK77oiJ9wloF/dwI3EW"}],"size":2776,"noattachment":false,"key":"/co-busboy/-/co-busboy-1.0.0.tgz"},"_from":".","_npmVersion":"1.3.22","_npmUser":{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},"maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"}],"directories":{},"publish_time":1392829921535,"_cnpm_publish_time":1392829921535},"0.1.1":{"name":"co-busboy","description":"Busboy multipart parser as a yieldable","version":"0.1.1","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/jonathanong/co-busboy.git"},"bugs":{"url":"https://github.com/jonathanong/co-busboy/issues"},"dependencies":{"busboy":"~0.0.13","chan":"~0.2.0"},"devDependencies":{"co":"*","mocha":"*","should":"*"},"scripts":{"test":"make test"},"homepage":"https://github.com/jonathanong/co-busboy","_id":"co-busboy@0.1.1","dist":{"shasum":"d28cd05fd1373ba4f9b486f33f498ec19d1a2dfa","tarball":"http://registry-npm.ywwl.com/co-busboy/download/co-busboy-0.1.1.tgz","integrity":"sha512-c0iRXZeQ3nqiHnnOpxCQJ861Xm+UOuxeL+pKAK4CBGfYrun6teCOmFJwQpMY0ZtjF3Xc20NJC54O4lj5ysRRGg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAisJb6DK/f+0HWP5IR5N00DrxfiE+vGu8mUJtvFu8zuAiB8drrcDpPyQYtSnTwxBfK7mTGgBPUREdPDH10FbUrZZQ=="}],"size":2717,"noattachment":false,"key":"/co-busboy/-/co-busboy-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},"maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"}],"directories":{},"publish_time":1387535359967,"_cnpm_publish_time":1387535359967},"0.1.0":{"name":"co-busboy","description":"Busboy multipart parser as a yieldable","version":"0.1.0","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/jonathanong/co-busboy.git"},"bugs":{"url":"https://github.com/jonathanong/co-busboy/issues"},"dependencies":{"busboy":"~0.0.12","chan":"~0.2.0"},"devDependencies":{"co":"*","mocha":"*","should":"*"},"scripts":{"test":"make test"},"homepage":"https://github.com/jonathanong/co-busboy","_id":"co-busboy@0.1.0","dist":{"shasum":"48eef0d05621f6e2f6b65cf8336bd3daba040e75","tarball":"http://registry-npm.ywwl.com/co-busboy/download/co-busboy-0.1.0.tgz","integrity":"sha512-ni7H/nWhy05Vqt7lehg26+wHAvbLuJ5aT7A/ImanESDB95Ae+jBlUwzfMi9Tn881MQUcXnM5wgoavp7Rqx7wcA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKR4qPTPgNfmnh077nz8ZWIpVUMJ55NFxeaNcz/iPacgIgSXoB6+hRh5eKBaHJ368KQru4PKR8pVCpQa3bnNQL4Gk="}],"size":2682,"noattachment":false,"key":"/co-busboy/-/co-busboy-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"directories":{},"publish_time":1386585916299,"_cnpm_publish_time":1386585916299}},"readme":"# co busboy\n\n[![NPM version][npm-image]][npm-url]\n[![Node.js CI](https://github.com/cojs/busboy/actions/workflows/nodejs.yml/badge.svg)](https://github.com/cojs/busboy/actions/workflows/nodejs.yml)\n[![Test coverage][codecov-image]][codecov-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/co-busboy.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/co-busboy\n[codecov-image]: https://codecov.io/github/cojs/busboy/coverage.svg?branch=master\n[codecov-url]: https://codecov.io/github/cojs/busboy?branch=master\n[download-image]: https://img.shields.io/npm/dm/co-busboy.svg?style=flat-square\n[download-url]: https://npmjs.org/package/co-busboy\n\n[busboy](http://github.com/mscdex/busboy) multipart parser using `co` or `koa`.\n\n## Example\n\n```js\nconst parse = require('co-busboy')\n\napp.use(async (next) => {\n  // the body isn't multipart, so busboy can't parse it\n  if (!this.request.is('multipart/*')) return await next()\n\n  const parts = parse(this)\n  let part\n  while (part = await parts()) {\n    if (part.length) {\n      // arrays are busboy fields\n      console.log('key: ' + part[0])\n      console.log('value: ' + part[1])\n    } else {\n      // otherwise, it's a stream\n      part.pipe(fs.createWriteStream('some file.txt'))\n    }\n  }\n  console.log('and we are done parsing the form!')\n})\n```\n\nNote that parts will be delievered in the order they are defined in the form.\nPut your CSRF token first in the form and your larger files last.\n\nIf you want `co-busboy` to automatically handle the fields,\nset the `autoFields: true` option.\nNow all the parts will be streams and a field object and array will automatically be populated.\n\n```js\nconst parse = require('co-busboy')\n\napp.use(async (next) => {\n  const parts = parse(this, {\n    autoFields: true\n  })\n  let part\n  while (part = await parts()) {\n    // it's a stream\n    part.pipe(fs.createWriteStream('some file.txt'))\n  }\n  console.log('and we are done parsing the form!')\n  // .field holds all the fields in key/value form\n  console.log(parts.field._csrf)\n  // .fields holds all the fields in [key, value] form\n  console.log(parts.fields[0])\n})\n```\n\n### Example for csrf check\n\nUse `options.checkField` hook `function(name, val, fieldnameTruncated, valTruncated)`\ncan handle fields check.\n\n```js\nconst parse = require('co-busboy')\n\napp.use(async (next) => {\n  const ctx = this\n  const parts = parse(this, {\n    checkField: (name, value) => {\n      if (name === '_csrf' && !checkCSRF(ctx, value)) {\n        var err =  new Error('invalid csrf token')\n        err.status = 400\n        return err\n      }\n    }\n  })\n  let part\n  while (part = await parts()) {\n    // ...\n  }\n})\n```\n\n### Example for filename extension check\n\nUse `options.checkFile` hook `function(fieldname, file, filename, encoding, mimetype)`\ncan handle filename check.\n\n```js\nconst parse = require('co-busboy')\nconst path = require('path')\n\napp.use(async (next) => {\n  const ctx = this\n  const parts = parse(this, {\n    // only allow upload `.jpg` files\n    checkFile: (fieldname, file, filename) => {\n      if (path.extname(filename) !== '.jpg') {\n        var err = new Error('invalid jpg image')\n        err.status = 400\n        return err\n      }\n    }\n  })\n  let part\n  while (part = await parts()) {\n    // ...\n  }\n})\n```\n\n## API\n\n### parts = parse(stream, [options])\n\n```js\nconst parse = require('co-busboy')\nconst parts = parse(stream, {\n  autoFields: true\n})\n```\n\n`options` are passed to [busboy](https://github.com/mscdex/busboy).\nThe only additional option is `autoFields`.\n\n**Note**: If busboy events `partsLimit`, `filesLimit`, `fieldsLimit` is emitted, will throw an error.\n\n### part = await parts()\n\nAwait the next part.\nIf `autoFields: true`, this will always be a file stream.\nOtherwise, it will be a [field](https://github.com/mscdex/busboy#busboy-special-events) as an array.\n\n- Readable Stream\n\n    - `fieldname`\n    - `filename`\n    - `transferEncoding` or `encoding`\n    - `mimeType` or `mime`\n\n- Field[]\n\n    0. `fieldname`\n    1. `value`\n    2. `valueTruncated` - `Boolean`\n    3. `fieldnameTruncated` - Boolean\n\nIf falsey, then the parser is done.\n\n### parts.field{}\n\nIf `autoFields: true`, this object will be populated with key/value pairs.\n\n### parts.fields[]\n\nIf `autoFields: true`, this array will be populated with all fields.\n\n## License\n\n```\nThe MIT License (MIT)\n\nCopyright (c) 2013 Jonathan Ong me@jongleberry.com\nCopyright (c) 2015 cojs and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n```\n","_attachments":{},"homepage":"https://github.com/cojs/co-busboy#readme","bugs":{"url":"https://github.com/cojs/co-busboy/issues"},"license":"MIT"}