{"_id":"@chcpayment/fastify-multipart","_rev":"8-daea7220f4b3473d3f2340a1bf026cec","name":"@chcpayment/fastify-multipart","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.7":{"name":"@chcpayment/fastify-multipart","version":"1.0.7","description":"Multipart plugin for Fastify","main":"index.js","typings":"index.d.ts","dependencies":{"busboy":"^0.3.0","deepmerge":"^4.0.0","end-of-stream":"^1.4.1","fastify-plugin":"^1.5.0"},"devDependencies":{"@types/busboy":"^0.2.3","@types/node":"^12.11.7","@typescript-eslint/parser":"^2.0.0","climem":"^1.0.3","concat-stream":"^2.0.0","eslint":"^6.6.0","eslint-config-standard":"^14.0.0","eslint-config-standard-with-typescript":"^8.0.0","eslint-plugin-import":"^2.17.2","eslint-plugin-node":"^10.0.0","eslint-plugin-promise":"^4.1.1","eslint-plugin-typescript":"^0.14.0","fastify":"^2.0.0","form-data":"^3.0.0","pre-commit":"^1.2.2","pump":"^3.0.0","readable-stream":"^3.6.0","snazzy":"^8.0.0","standard":"^14.0.2","tap":"^12.7.0","typescript":"^3.4.5"},"scripts":{"lint":"npm run lint:standard && npm run lint:typescript","lint:standard":"standard | snazzy","lint:typescript":"standard --parser @typescript-eslint/parser --plugin typescript test/types/*.ts","unit":"tap test/*.test.js","typescript":"tsc --project ./test/types/tsconfig.json","test":"npm run lint && npm run unit && npm run typescript","start":"CLIMEM=8999 node -r climem example","climem":"climem 8999 localhost"},"repository":{"type":"git","url":"git+https://github.com/hank7444/fastify-multipart.git"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"keywords":["fastify","multipart","form"],"author":{"name":"Cheng-Han.Kuo","email":"cheng-han.kuo@changehealthcare.com"},"license":"MIT","greenkeeper":{"ignore":["tap"]},"bugs":{"url":"https://github.com/hank7444/fastify-multipart/issues"},"homepage":"https://github.com/hank7444/fastify-multipart#readme","directories":{"test":"test"},"gitHead":"7edd5d8d8548434961cdc7547abc95caf285811b","_id":"@chcpayment/fastify-multipart@1.0.7","_nodeVersion":"16.16.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-xZshMtC3Q2fc1DwjNk+i/804iVLVGUV7cMARXQQjcwuhGsKAu4Oz1tvj5i9QDvryWQQlvwiJlqpxdSV50JHOMg==","shasum":"2f6bd58f1fd72d04d0c16d6be4ca2d5db134456f","tarball":"https://registry.npmjs.org/@chcpayment/fastify-multipart/-/fastify-multipart-1.0.7.tgz","fileCount":16,"unpackedSize":49642,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxSpEmzEbrS4OCvmq7Bj065HbqDdB8paE780AiRm0Z6gIgN2zcY38m/oT7Vsff1/TJSgD4hnidzfsOaVopWdlvH9s="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0QLBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrNBw//cz8Q+GdECaG9XNafxAz+riydqxCIgo96wr2iy/xqsq2p9pCP\r\nJFygMfUx/7lFGp97ICb8wRndpQ9DZrFrHr5EDnmelmbBB5cULMoz1bx0IBAk\r\nVtCTC7bRDDlZFH5kin7o43QEWsS+HCUXArOSX5HSfYwtHZhpDCXJ+3z+AmDq\r\n1O1TvDNat2QRWLBYR+eNRHhyzM5FT45nJxUrMmR4yFD8XM/4eAaKvKoL7JUO\r\nJvoV0FqYlzSaEWCU0RIm+2rnw5Acr8v8qvTSDI7uO4wmyTrTxIWrS8q7hxCV\r\nwxSErMbBhpGOkPL2uy6SdkEbePwjFqAK6ErsbxQm7zTTzuAeZx+AoUI9I/1x\r\nHuX7y7SRxgmndJqivJMLiIAPn3U3ocmLT7u0YZl7aBzzu7X1KJDAHg6w6o1N\r\nS3eV/2tEoi7CDSucQG649lCDikg0ds3mvgsQ/dOhpOizu0JNzdMn/a/onzYS\r\n1V0JBQAUXrBqv41hDcgOAVZKHhHQyb2fxBi2esEMbjcS7IvojP78jG9AtbXU\r\nGIy+Ch1nt+1prcHfb5WaIdtqyqvsaCt3OVrMFU+SA3HX1gfJZMxvMpLSEc7r\r\nKx4ctNQVkrkQpnxtNJGWbx7fX2msmQq7LqtZzkjAS+mgWXlwpCHjxKpMJofv\r\nLBokTu87AGSkVBkzMtRZ0/kOLFd5v45PAxM=\r\n=LZ/n\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hank7444","email":"hank7444@gmail.com"},"maintainers":[{"name":"hank7444","email":"hank7444@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-multipart_1.0.7_1657864897123_0.8120047768985461"},"_hasShrinkwrap":false},"1.0.8":{"name":"@chcpayment/fastify-multipart","version":"1.0.8","description":"Multipart plugin for Fastify","main":"index.js","typings":"index.d.ts","dependencies":{"busboy":"^0.3.0","deepmerge":"^4.0.0","end-of-stream":"^1.4.1","fastify-plugin":"^1.5.0"},"devDependencies":{"@types/busboy":"^0.2.3","@types/node":"^12.11.7","@typescript-eslint/parser":"^2.0.0","climem":"^1.0.3","concat-stream":"^2.0.0","eslint":"^6.6.0","eslint-config-standard":"^14.0.0","eslint-config-standard-with-typescript":"^8.0.0","eslint-plugin-import":"^2.17.2","eslint-plugin-node":"^10.0.0","eslint-plugin-promise":"^4.1.1","eslint-plugin-typescript":"^0.14.0","fastify":"^2.0.0","form-data":"^3.0.0","pre-commit":"^1.2.2","pump":"^3.0.0","readable-stream":"^3.6.0","snazzy":"^8.0.0","standard":"^14.0.2","tap":"^12.7.0","typescript":"^3.4.5"},"scripts":{"lint":"npm run lint:standard && npm run lint:typescript","lint:standard":"standard | snazzy","lint:typescript":"standard --parser @typescript-eslint/parser --plugin typescript test/types/*.ts","unit":"tap test/*.test.js","typescript":"tsc --project ./test/types/tsconfig.json","test":"npm run lint && npm run unit && npm run typescript","start":"CLIMEM=8999 node -r climem example","climem":"climem 8999 localhost"},"repository":{"type":"git","url":"git+https://github.com/hank7444/fastify-multipart.git"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"keywords":["fastify","multipart","form"],"author":{"name":"Cheng-Han.Kuo","email":"cheng-han.kuo@changehealthcare.com"},"license":"MIT","greenkeeper":{"ignore":["tap"]},"bugs":{"url":"https://github.com/hank7444/fastify-multipart/issues"},"homepage":"https://github.com/hank7444/fastify-multipart#readme","directories":{"test":"test"},"gitHead":"9aa4e6a7ec0ab3c6dd261b8b47f489f502656f8d","_id":"@chcpayment/fastify-multipart@1.0.8","_nodeVersion":"16.16.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-DEDBPJME3gzKGutZI6/+sewQzPDaYXyuTHsbJwn+sIOmdToNXPs4OMbTgNWp6jKfJ1hCUByHkM/u4nMtHcLp0Q==","shasum":"963a5026635c39e72d21cdc8d4ef52703e696e91","tarball":"https://registry.npmjs.org/@chcpayment/fastify-multipart/-/fastify-multipart-1.0.8.tgz","fileCount":16,"unpackedSize":49654,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIErjYJi2hm9k4LMK5n2jB2Lc3uwNJPmRyMwHKLdCc0rDAiEA+owfyGRlk8503dVQmQ/GpZWgSajYITI/nRa4NZ43g8g="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAbMXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpRKA//csDlN18r7ltkGxc5ZJ4Y2OA63RPJ1dJyRuPLMP4sqHIsR4wf\r\nfAhHRZpp/bI35dxYsb2sXwiOZd34QJB7Kg9oUU5u4evHZ1b8qvYfdA3+dZLk\r\n7RX0E5WcQd5bB65FKH/qFq3sjalF2HCICvuPuA49JRiTyULpEIsy49gIHNNG\r\nH4DMPQw1uTSftKGDocoLbnkV3dcLbGNvT1tKw/DBkYT/4vV3HSqXkxT2cuDD\r\nTmvcp9XbH2jQqE/V76s6Gub5aFPPisge0jx3GF/AQQ64+drOpgpmhIDy2Zkd\r\n01Ez82hext3e/20SSSL8U9tcgjdc/wRkmr48BByIS0RNteNCQm2669NcXGC0\r\nWfqx5e+ksnf561Iap38Ab9qNc3wH6s0c1Bf+pYy9DZOjdBVvYlEpHqNy0mQJ\r\nViN0XkpHpB9DWMbYRm1fsS78AhneMdF/9v3b8C137kIZrJTXskr4zVYznbV4\r\ntL9DRPDuKneEVpX8L0Q3vjZBnrZjQM362IN2cwtFVFAbOi7avawCKEdgD/5/\r\n8vHIwNJst9j5+HHLYzqBXv0BVyXmoBvEbrVQVD1u5wc1KtJgmC63hojXssiQ\r\nBiZqedQ4YLc+ERSC1/40SwhVzJ8pIRcf71UKQvarG2rs8RNtG01FpqDVSV6R\r\naBDI/LhUdKMsxdJ8TP2xCqjIhmzmP+gV+Zw=\r\n=TZ31\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hank7444","email":"hank7444@gmail.com"},"maintainers":[{"name":"meifutoolate","email":"meifutoolate@gmail.com"},{"name":"hank7444","email":"hank7444@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-multipart_1.0.8_1677832982895_0.761105945940538"},"_hasShrinkwrap":false},"1.0.9":{"name":"@chcpayment/fastify-multipart","version":"1.0.9","description":"Multipart plugin for Fastify","main":"index.js","typings":"index.d.ts","dependencies":{"busboy":"^0.3.0","deepmerge":"^4.0.0","end-of-stream":"^1.4.1","fastify-plugin":"^1.5.0"},"devDependencies":{"@types/busboy":"^0.2.3","@types/node":"^12.11.7","@typescript-eslint/parser":"^2.0.0","climem":"^1.0.3","concat-stream":"^2.0.0","eslint":"^6.6.0","eslint-config-standard":"^14.0.0","eslint-config-standard-with-typescript":"^8.0.0","eslint-plugin-import":"^2.17.2","eslint-plugin-node":"^10.0.0","eslint-plugin-promise":"^4.1.1","eslint-plugin-typescript":"^0.14.0","fastify":"^2.0.0","form-data":"^3.0.0","pre-commit":"^1.2.2","pump":"^3.0.0","readable-stream":"^3.6.0","snazzy":"^8.0.0","standard":"^14.0.2","tap":"^12.7.0","typescript":"^3.4.5"},"scripts":{"lint":"npm run lint:standard && npm run lint:typescript","lint:standard":"standard | snazzy","lint:typescript":"standard --parser @typescript-eslint/parser --plugin typescript test/types/*.ts","unit":"tap test/*.test.js","typescript":"tsc --project ./test/types/tsconfig.json","test":"npm run lint && npm run unit && npm run typescript","start":"CLIMEM=8999 node -r climem example","climem":"climem 8999 localhost"},"repository":{"type":"git","url":"git+https://github.com/hank7444/fastify-multipart.git"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"keywords":["fastify","multipart","form"],"author":{"name":"Cheng-Han.Kuo","email":"cheng-han.kuo@changehealthcare.com"},"license":"MIT","greenkeeper":{"ignore":["tap"]},"bugs":{"url":"https://github.com/hank7444/fastify-multipart/issues"},"homepage":"https://github.com/hank7444/fastify-multipart#readme","directories":{"test":"test"},"gitHead":"9aa4e6a7ec0ab3c6dd261b8b47f489f502656f8d","_id":"@chcpayment/fastify-multipart@1.0.9","_nodeVersion":"16.16.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-2N4S5ffg161OVVgBMU/LI7sbRgBjTCCBfAwPa29PcmfV6oJAwCosxTXrxRD86XOaK/LMGY2EBLW+WEHLTJWUtw==","shasum":"242864030434260fbe5187e33ca779b3f4dfbc16","tarball":"https://registry.npmjs.org/@chcpayment/fastify-multipart/-/fastify-multipart-1.0.9.tgz","fileCount":16,"unpackedSize":49654,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWZReNKP8rX0nqblu9iAbDTHdIFZ0JVoq7qBnGv5vJFwIhAPucNKxZZEgcckgmlUaoxaLHFVVmjY25plumE009GZu5"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAbSxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqEgA/+OQ5eQ0/KrtDn3xXyGmXs6xUK2XRe/6gyuxvqDlc59c610F0L\r\n+21OQwyRVoAPtlCxGHUXZUZ7YsY9lhVL8Esz8Ktpo+M9Z8UtJMyy2loNYz8A\r\n18FLMkizx3RyXFwyQi4UHQEj8H797tMmF2CQ5S211qxvcQWnDS2hH5qh+X/n\r\nun7li7TJ0T1Ev2hscHA5gB3DX1vXHPhsJoVES+d8ogj4BWaiN6HTQT2Des0N\r\nbYepyxLGNVvNkq3gngobj1P0DNbMBuwMPJZR/J37A5uI7uGzeUmAJE3wqogG\r\ndW5hqZYDt6X0F/Wjo6aNulLpVH1qrJ+klxVz5kGXe7fSMcAl52yIgRwBzrGK\r\nQ9PWUoTBw68XTTFORiWHmH6T2dQacgyi4ZycoDsqsPcdlrssWlJinFFYbdFp\r\n+sieFHxHK0fLJ7teDrxZtPBdD3gBSiFIw9F/ZIlqJxcnCRoh583VNBGvjvuJ\r\nwF0Plv8UpkCs9vd57ZgHOua1Vl1vOKBhb1h7sRtxHo06hxZS0F5O2e60f/8P\r\n3QcDqpA0XTIU0Dnlobhuwe0dnqzNU9Njsa8sU3AU0Yc9OUEo/kxlmlAWjkMH\r\nMtQd8K9/N7AQ2gnv5OlnldcqHs4Lbf/FVFSMQ5ek3ydpJrrJD1vy+JbbqHnm\r\nxWT1HrKR+a7l0ZubeyeWUNVplIGuCat1e4E=\r\n=Rsk8\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hank7444","email":"hank7444@gmail.com"},"maintainers":[{"name":"meifutoolate","email":"meifutoolate@gmail.com"},{"name":"hank7444","email":"hank7444@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-multipart_1.0.9_1677833393143_0.6608055269931168"},"_hasShrinkwrap":false},"1.0.10":{"name":"@chcpayment/fastify-multipart","version":"1.0.10","description":"Multipart plugin for Fastify","main":"index.js","typings":"index.d.ts","dependencies":{"busboy":"^0.3.0","deepmerge":"^4.0.0","end-of-stream":"^1.4.1","fastify-plugin":"^1.5.0"},"devDependencies":{"@types/busboy":"^0.2.3","@types/node":"^12.11.7","@typescript-eslint/parser":"^2.0.0","climem":"^1.0.3","concat-stream":"^2.0.0","eslint":"^6.6.0","eslint-config-standard":"^14.0.0","eslint-config-standard-with-typescript":"^8.0.0","eslint-plugin-import":"^2.17.2","eslint-plugin-node":"^10.0.0","eslint-plugin-promise":"^4.1.1","eslint-plugin-typescript":"^0.14.0","fastify":"^2.0.0","form-data":"^3.0.0","pre-commit":"^1.2.2","pump":"^3.0.0","readable-stream":"^3.6.0","snazzy":"^8.0.0","standard":"^14.0.2","tap":"^12.7.0","typescript":"^3.4.5"},"scripts":{"lint":"npm run lint:standard && npm run lint:typescript","lint:standard":"standard | snazzy","lint:typescript":"standard --parser @typescript-eslint/parser --plugin typescript test/types/*.ts","unit":"tap test/*.test.js","typescript":"tsc --project ./test/types/tsconfig.json","test":"npm run lint && npm run unit && npm run typescript","start":"CLIMEM=8999 node -r climem example","climem":"climem 8999 localhost"},"repository":{"type":"git","url":"git+https://github.com/hank7444/fastify-multipart.git"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"keywords":["fastify","multipart","form"],"author":{"name":"Cheng-Han.Kuo","email":"cheng-han.kuo@changehealthcare.com"},"license":"MIT","greenkeeper":{"ignore":["tap"]},"bugs":{"url":"https://github.com/hank7444/fastify-multipart/issues"},"homepage":"https://github.com/hank7444/fastify-multipart#readme","directories":{"test":"test"},"gitHead":"9aa4e6a7ec0ab3c6dd261b8b47f489f502656f8d","_id":"@chcpayment/fastify-multipart@1.0.10","_nodeVersion":"16.16.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-CNrbicbjukYxwgtCvB3UXlRUoBWB8O7DK7LutpToa62gNPzKKkLksm3yRDNWLMgEZ+NY+d1xG/4NnPhZyy5hhQ==","shasum":"eb08fa7865eec5fb2d379448f0497b15d0ca777c","tarball":"https://registry.npmjs.org/@chcpayment/fastify-multipart/-/fastify-multipart-1.0.10.tgz","fileCount":16,"unpackedSize":49655,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDAaHhLvmBQYw/EdFZUUnoeoZF2NSXXGJo2hGczFSIVuAiAIFifhc3UMlUVcmoGuNaDO0vEHB8gRPo7KpWf/LcS4zA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAdcWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/Qg/9HxJMStU3+HJ4V0KF6p2+EZy0QjAhmKf033BXqSlccFiZXUbX\r\naOGD5LQMyCFuoYV19GON+CRRq9kLCFBX1c4yoQOoJKzW2DBjoBnYrWOD7/oI\r\nywSi0yvseb3zZEeXMUfV86pCyYeP1N3QvIiJwsO9Z6Paqp9E1SaA695zVZYb\r\nGE5zPTuN9T7976/ddSsIbD8Czl9MI/6tsc5Y3vSfqp4XqVHQWUpk68RmgEYS\r\nU4AmwFmGN/4Bz7QJBwBOltSFqQvp38ChFIkl+WyjtBvpkf9zEVicSA7jjwHt\r\nUO40K1xQZc34VAcWERGniwwKgtTU4nkdbHiGE498YaxuGoLKGOY7YWt88SO+\r\n6jVm5NrHY3LucewV/6RVVZEThixYrz3T40Qu+gZx0r3LKiDAqlYltBgWW7gC\r\npcXARdGNamDSKtv59oN7I/UsLez+7Bn9fHhO08m/WB8kCq6ED5Sx3QsWAZ4T\r\nBJcETe64Bm2Ysi5/YOyVv0qHxZDsFviB+7ltqjaczszJ6+HsNPdL+mOjFjQg\r\nzSTUK5eG47bQErIwJA8H2Q2tuH7x70i0is8r3k4r0cANpfOE8Nz6ubcebz8E\r\niM21IsZ59+fVt5eeWrtpl0d+Fk3g2fcuv0AFQ5LgEp7bsUQmyDXXEexX0xzH\r\nbN7dtQfQWEAdHy9nT0oVW7+bnLLFfWKGDbM=\r\n=e6lQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hank7444","email":"hank7444@gmail.com"},"maintainers":[{"name":"meifutoolate","email":"meifutoolate@gmail.com"},{"name":"hank7444","email":"hank7444@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-multipart_1.0.10_1677842198011_0.006259068787743072"},"_hasShrinkwrap":false},"1.0.11":{"name":"@chcpayment/fastify-multipart","version":"1.0.11","description":"Multipart plugin for Fastify","main":"index.js","typings":"index.d.ts","dependencies":{"busboy":"^0.3.0","deepmerge":"^4.0.0","end-of-stream":"^1.4.1","fastify-plugin":"^1.5.0"},"devDependencies":{"@types/busboy":"^0.2.3","@types/node":"^12.11.7","@typescript-eslint/parser":"^2.0.0","climem":"^1.0.3","concat-stream":"^2.0.0","eslint":"^6.6.0","eslint-config-standard":"^14.0.0","eslint-config-standard-with-typescript":"^8.0.0","eslint-plugin-import":"^2.17.2","eslint-plugin-node":"^10.0.0","eslint-plugin-promise":"^4.1.1","eslint-plugin-typescript":"^0.14.0","fastify":"^2.0.0","form-data":"^3.0.0","pre-commit":"^1.2.2","pump":"^3.0.0","readable-stream":"^3.6.0","snazzy":"^8.0.0","standard":"^14.0.2","tap":"^12.7.0","typescript":"^3.4.5"},"scripts":{"lint":"npm run lint:standard && npm run lint:typescript","lint:standard":"standard | snazzy","lint:typescript":"standard --parser @typescript-eslint/parser --plugin typescript test/types/*.ts","unit":"tap test/*.test.js","typescript":"tsc --project ./test/types/tsconfig.json","test":"npm run lint && npm run unit && npm run typescript","start":"CLIMEM=8999 node -r climem example","climem":"climem 8999 localhost"},"repository":{"type":"git","url":"git+https://github.com/hank7444/fastify-multipart.git"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"keywords":["fastify","multipart","form"],"author":{"name":"Cheng-Han.Kuo","email":"cheng-han.kuo@changehealthcare.com"},"license":"MIT","greenkeeper":{"ignore":["tap"]},"bugs":{"url":"https://github.com/hank7444/fastify-multipart/issues"},"homepage":"https://github.com/hank7444/fastify-multipart#readme","directories":{"test":"test"},"gitHead":"9aa4e6a7ec0ab3c6dd261b8b47f489f502656f8d","_id":"@chcpayment/fastify-multipart@1.0.11","_nodeVersion":"16.16.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-gbYoz/41Cayp7I9nEiZAtjJDXEQe+cZGnZt0U/wiH6jLbG6KcH7bm6P31PumzYcE8vJO27st+1USBN6foWf//w==","shasum":"718b24ff806ab3c904ff075d8fac595b0bca4307","tarball":"https://registry.npmjs.org/@chcpayment/fastify-multipart/-/fastify-multipart-1.0.11.tgz","fileCount":16,"unpackedSize":49684,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1fFf0WmF2/4ke+q+U2HQfi1/BzzjnHdKK53db69BivgIhAI1A7LyLAQDNMDAcGfFqjo2JyT+PPBdj8sT26jT+y6TW"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAecjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmriOg//S4a6XEiM8Ii0sVVEOSRzJ3ycUoN+dey96jhoN3OEQdOkPduU\r\nqHZpERATzD8BTGfphRPohwTP57HPM7CWYOf3O1F9dpo9hkU1oDEdapjC2b0N\r\nT4mW1UNj6iM5bV3KTvgRqNqLrYD3bVLFbVP4UZQqVgJkEtQK6y1O8xrbVOzn\r\ni/EJuYTyofdK2ZWYfIy6bEVHNH+TL6PcS1sCxJDEwd+nksCxOIDPS+lI9TT0\r\nlL9xlCuk2nzd/4L8x8sqq97uIiGEoN6MwaPIZqamhJHTaMm0uy5dfEhFn7Ag\r\nqKvbo2q+kf4ZNEK4t8AKrT8dLyXS27/LMa6KJsjGp9hSkyQvoD/+qXqF3ynL\r\na9Pp/LGT98iSmSdkbWlKn6SHgoDAHbK2gEJIRMVtEWu9Ha30ZVAFlYR/ZfFQ\r\ncCV+95jLaGz3Q4LHhqClGOuTKCgIvGrYIQnZsVYav2dY9HdSld/86jLZb9Sr\r\nG41cD/eZnAsfHzIeyEfFeknnKXWVBmERJXegOT3hrlBg4qOmpFMm3MWKWiFa\r\nRIz9LBLOIBsEfmLWQ7rplfWwIKSScdAp318h5oRGfKX8K+mMAtOf1tW7bokR\r\nfgvWOiPqFHLTjkZxNSH4Pi/RIlBSaddPXvMPKVNZ82eA5xHJdxZko5Ue/Of7\r\n0ViydjEnOVIXEjgdSwOyx8jSRTv0fSI/wl8=\r\n=mKuc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hank7444","email":"hank7444@gmail.com"},"maintainers":[{"name":"meifutoolate","email":"meifutoolate@gmail.com"},{"name":"hank7444","email":"hank7444@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-multipart_1.0.11_1677846307741_0.8968836374917213"},"_hasShrinkwrap":false},"1.0.12":{"name":"@chcpayment/fastify-multipart","version":"1.0.12","description":"Multipart plugin for Fastify","main":"index.js","typings":"index.d.ts","dependencies":{"busboy":"^0.3.0","deepmerge":"^4.0.0","end-of-stream":"^1.4.1","fastify-plugin":"^1.5.0"},"devDependencies":{"@types/busboy":"^0.2.3","@types/node":"^12.11.7","@typescript-eslint/parser":"^2.0.0","climem":"^1.0.3","concat-stream":"^2.0.0","eslint":"^6.6.0","eslint-config-standard":"^14.0.0","eslint-config-standard-with-typescript":"^8.0.0","eslint-plugin-import":"^2.17.2","eslint-plugin-node":"^10.0.0","eslint-plugin-promise":"^4.1.1","eslint-plugin-typescript":"^0.14.0","fastify":"^2.0.0","form-data":"^3.0.0","pre-commit":"^1.2.2","pump":"^3.0.0","readable-stream":"^3.6.0","snazzy":"^8.0.0","standard":"^14.0.2","tap":"^12.7.0","typescript":"^3.4.5"},"scripts":{"lint":"npm run lint:standard && npm run lint:typescript","lint:standard":"standard | snazzy","lint:typescript":"standard --parser @typescript-eslint/parser --plugin typescript test/types/*.ts","unit":"tap test/*.test.js","typescript":"tsc --project ./test/types/tsconfig.json","test":"npm run lint && npm run unit && npm run typescript","start":"CLIMEM=8999 node -r climem example","climem":"climem 8999 localhost"},"repository":{"type":"git","url":"git+https://github.com/hank7444/fastify-multipart.git"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"keywords":["fastify","multipart","form"],"author":{"name":"Cheng-Han.Kuo","email":"cheng-han.kuo@changehealthcare.com"},"license":"MIT","greenkeeper":{"ignore":["tap"]},"bugs":{"url":"https://github.com/hank7444/fastify-multipart/issues"},"homepage":"https://github.com/hank7444/fastify-multipart#readme","directories":{"test":"test"},"gitHead":"9aa4e6a7ec0ab3c6dd261b8b47f489f502656f8d","_id":"@chcpayment/fastify-multipart@1.0.12","_nodeVersion":"16.16.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-xzBoLnCJzB+nxCSKysZAyxyxRmZAg1lSjtM/LaHOgDjkI/qoh6x+SJNTKKbdRNqqTU1grxTRxhdIPu9ChFBprQ==","shasum":"b1038bda0e409255f1d272a442146114d05638b8","tarball":"https://registry.npmjs.org/@chcpayment/fastify-multipart/-/fastify-multipart-1.0.12.tgz","fileCount":16,"unpackedSize":49684,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCHwyWhhN6a93OgFqVB343UY/aLKkxnPMkf2kKhPiYnfYCIQDiiW5VlQpVGx/w0eu6BtxrKBb+zjnpA0nHjcDtNajilA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAfwxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr6+A//Rf6Clqy3+yLZ4Sd7rPO1+Ru36e7ZbW4Aosy5w/H5L0+ow1oL\r\nGC62cb6kVwCUHg8eDQcxcn5Gs1XgUag6kNTEfKnN6HR3IeLxcsi2m82Z1/jH\r\nig0LjCHy7gjimemggdcZo0j4N0uOcmJ69gXeUWHq7WtvmAHv2DB3WzJ/fgNd\r\n/PTPbvkhmxJslxl1J5dUqvspdDhlzWK8EG8TjOJVagLQb2mjSOZUTogxSRiM\r\nRmACnToMNXiMmgeCEMzeOGEoU8S0pz6OLONtzgVnP9lnEnloFj1cPny7tDGD\r\nergwnXZcQ89pSHRAFNBixAoAYnk6zctIZrfIiMyH6U9pHdFmLz+Rb9XEAOjA\r\n5WLHVhtIPHCM9XWD/2X0xJFo/DMEMsMg0EUxY008s2GSsztBZaIE/o03W2rA\r\n/PZLUmNfHo47Ua16MTdN2Kaubemilu4w6T/ob8GDifOtzv1y+kAmHEgzFTC+\r\na3Xisez/ZAMk7A5Jvi7B5WfeKb8K3nAu4DIGO+lQr85IscVdwVajZhjfc9Y8\r\nYeNFs5ksdRVv6Sp478NM8sJdo40ZD1cdodFOAbK4PCh93T1hT7E8mtF/wMCb\r\n3nnEOHT6k0sXRUvLDxRRf2wfL1U2oK0JoIM9Us9c4eEwlLusPKduGufftJUH\r\n5hB+qUYOZi/MLHHXVxiIjQs683ZpfOih9Y4=\r\n=NOiu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hank7444","email":"hank7444@gmail.com"},"maintainers":[{"name":"meifutoolate","email":"meifutoolate@gmail.com"},{"name":"hank7444","email":"hank7444@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-multipart_1.0.12_1677851696994_0.719021676250519"},"_hasShrinkwrap":false},"1.0.13":{"name":"@chcpayment/fastify-multipart","version":"1.0.13","description":"Multipart plugin for Fastify","main":"index.js","typings":"index.d.ts","dependencies":{"busboy":"^0.3.0","deepmerge":"^4.0.0","end-of-stream":"^1.4.1","fastify-plugin":"^1.5.0"},"devDependencies":{"@types/busboy":"^0.2.3","@types/node":"^12.11.7","@typescript-eslint/parser":"^2.0.0","climem":"^1.0.3","concat-stream":"^2.0.0","eslint":"^6.6.0","eslint-config-standard":"^14.0.0","eslint-config-standard-with-typescript":"^8.0.0","eslint-plugin-import":"^2.17.2","eslint-plugin-node":"^10.0.0","eslint-plugin-promise":"^4.1.1","eslint-plugin-typescript":"^0.14.0","fastify":"^2.0.0","form-data":"^3.0.0","pre-commit":"^1.2.2","pump":"^3.0.0","readable-stream":"^3.6.0","snazzy":"^8.0.0","standard":"^14.0.2","tap":"^12.7.0","typescript":"^3.4.5"},"scripts":{"lint":"npm run lint:standard && npm run lint:typescript","lint:standard":"standard | snazzy","lint:typescript":"standard --parser @typescript-eslint/parser --plugin typescript test/types/*.ts","unit":"tap test/*.test.js","typescript":"tsc --project ./test/types/tsconfig.json","test":"npm run lint && npm run unit && npm run typescript","start":"CLIMEM=8999 node -r climem example","climem":"climem 8999 localhost"},"repository":{"type":"git","url":"git+https://github.com/hank7444/fastify-multipart.git"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"keywords":["fastify","multipart","form"],"author":{"name":"Cheng-Han.Kuo","email":"cheng-han.kuo@changehealthcare.com"},"license":"MIT","greenkeeper":{"ignore":["tap"]},"bugs":{"url":"https://github.com/hank7444/fastify-multipart/issues"},"homepage":"https://github.com/hank7444/fastify-multipart#readme","directories":{"test":"test"},"gitHead":"9aa4e6a7ec0ab3c6dd261b8b47f489f502656f8d","_id":"@chcpayment/fastify-multipart@1.0.13","_nodeVersion":"16.16.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-CWlXhb2qAV/wAv1aok8AcmKnKsiFrANiawWW3QryxR5w9dwxGuv4KQoU2Dqfcn64k4H8MPumhb+XbtS221nPdQ==","shasum":"3f2012f74f1e7a135ee37d02c9235928a26a6edb","tarball":"https://registry.npmjs.org/@chcpayment/fastify-multipart/-/fastify-multipart-1.0.13.tgz","fileCount":16,"unpackedSize":49694,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAxO3zsdtQsq4tnnFXRCVAUR6XqV1h/r9m7+0WjIRWWBAiEAh//2wt+ugH8yLiYT2bZ722cOUGfkQOyUKMY4wbecjpk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAfy/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqhog//Tt3P9HMkRlky+Glju5Jr749RQ6LvvmxNP7B080qpMevtDq56\r\nx9niVqvqcOqJWeqJZnhNSqmv0Qttq9V4ucrYepHQROnA4/abSXASlTKRHX8C\r\n0M2b0P4KCSWG2ygv/Momp3qx9W3F/kFcGrjjToNQLKc4jQmn+KXlSktRwBIE\r\n6utfvIgUpDI14lYct5PwA/XCBI+7k/bysY/nCv4L2D11lxFy3nMtULFs/A3t\r\noDSsGJmbPqiIYUjgBWgbOK1hj4onrpayzKT5ePfR7+9t1F2No8aFa4zFVjKf\r\nxU4hYkf8ZOBMOUR2HYoU1W2SAf21Mvysvmet7G5998Cl4OJQieME0z8EAPhV\r\n0GQPoCzMzA0DxXVecv2AzDUNjpN/yQ/ILRGJ8hdZxob3Y6ceSsH6EnAglmzg\r\nbaTIjFaJx9J88HTs0tZ1tjdeNrwidK5IFB/wB8YZTRGxawJR6+cUpur1lP0M\r\ntNG9Bl7Q0Po0645JL+7UWp0hLLhVncHfLohs1rvpMUiK5elS8YoyaDitsz5Z\r\nAPNbtNKJwjH9SWsr0b0ZCd/+HJMyH6bWwtFw7/kupUhO+MBeG7KjGrA/+pWR\r\nfLU7+PM5ycYCpJan0zn28LQtFPHnCmoTlI5JAh2hkF9F95w8YwYgLGBMukcq\r\n+/Q1UuFL1aiKPNDNEaG5SzSsEF4llr12NzA=\r\n=J6SD\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hank7444","email":"hank7444@gmail.com"},"maintainers":[{"name":"meifutoolate","email":"meifutoolate@gmail.com"},{"name":"hank7444","email":"hank7444@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-multipart_1.0.13_1677851838992_0.7500887807010614"},"_hasShrinkwrap":false},"1.1.0":{"name":"@chcpayment/fastify-multipart","version":"1.1.0","description":"Multipart plugin for Fastify","main":"index.js","typings":"index.d.ts","dependencies":{"busboy":"^0.3.0","deepmerge":"^4.0.0","end-of-stream":"^1.4.1","fastify-plugin":"^1.5.0"},"devDependencies":{"@types/busboy":"^0.2.3","@types/node":"^12.11.7","@typescript-eslint/parser":"^2.0.0","climem":"^1.0.3","concat-stream":"^2.0.0","eslint":"^6.6.0","eslint-config-standard":"^14.0.0","eslint-config-standard-with-typescript":"^8.0.0","eslint-plugin-import":"^2.17.2","eslint-plugin-node":"^10.0.0","eslint-plugin-promise":"^4.1.1","eslint-plugin-typescript":"^0.14.0","fastify":"^2.0.0","form-data":"^3.0.0","pre-commit":"^1.2.2","pump":"^3.0.0","readable-stream":"^3.6.0","snazzy":"^8.0.0","standard":"^14.0.2","tap":"^12.7.0","typescript":"^3.4.5"},"scripts":{"lint":"npm run lint:standard && npm run lint:typescript","lint:standard":"standard | snazzy","lint:typescript":"standard --parser @typescript-eslint/parser --plugin typescript test/types/*.ts","unit":"tap test/*.test.js","typescript":"tsc --project ./test/types/tsconfig.json","test":"npm run lint && npm run unit && npm run typescript","start":"CLIMEM=8999 node -r climem example","climem":"climem 8999 localhost"},"repository":{"type":"git","url":"git+https://github.com/hank7444/fastify-multipart.git"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"keywords":["fastify","multipart","form"],"author":{"name":"Cheng-Han.Kuo","email":"cheng-han.kuo@changehealthcare.com"},"license":"MIT","greenkeeper":{"ignore":["tap"]},"bugs":{"url":"https://github.com/hank7444/fastify-multipart/issues"},"homepage":"https://github.com/hank7444/fastify-multipart#readme","directories":{"test":"test"},"gitHead":"9aa4e6a7ec0ab3c6dd261b8b47f489f502656f8d","_id":"@chcpayment/fastify-multipart@1.1.0","_nodeVersion":"16.16.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-uesWQNnDfiEeky/WnHeNTONy6y9hJ7dDbirZc8h0swl8AkxUrhqhGb/524lBPmWK0Pos9cUPdPGHFVMcHPdqZg==","shasum":"a1bb166c47ba8c6eb3c1023be87e5cd3b640298b","tarball":"https://registry.npmjs.org/@chcpayment/fastify-multipart/-/fastify-multipart-1.1.0.tgz","fileCount":16,"unpackedSize":49693,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjvSGwKKL6825Kgd/3OPnFFJ9ssV+zEVmV8VZAtEfHmAIgHaTFCECqhyeBxUyC7A4nAmxlNCgLgHls4pjryRRu2tA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAf2AACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrYVA/9F/0xGmCzu85G+XkDwHFwQ1qBGuo44lJfZWyUkphJRwsYRYKo\r\ntWy7HKMlOLPJyJ61o+K7QTk4fOIhowWNs+FJJ5nDMNxjCmFeP8JxEQSCrm9S\r\nYnas5T6fQuTHqNR2HuTCkPfdUafogi04SARwGeK6tsFRksj661675aEezgS4\r\nyQTuMZISO/jtPqdWtxFbciJxMw/wU2pJo6Q6k9f/TUdPkViCg5lXQSt2xb7/\r\nbPaSOqks+kyRASCcLFNIaUdKV2bjDWh+u31Zp+mbpGIULNTlMrnNfOow/YJj\r\nx+UuThBw8xww2MVNndqq5OY7/AIYp9rWSAkv+zj/NLk1qnlem2cyra4NDig4\r\n1XwCclfVaw6YoxIet0WS/AUnrMIswndw3bmwqGijsnIhJlblXleU6yznTijV\r\ntVIM8XmT9RD/eP9ZY65whW5FodVSfSFSJcfTlaUa15WPAFbk5wAUynnpeowa\r\nfxPd2EvA60Qypx9/QNB+Qkvhr121o9237jqUcgau+LNXogJXRC9bDcB6EC69\r\nlfinisKxzWc3GxpVNEQTXJRNfrXhXAM6n9HW35XfvPbnm49KtVXxDin/r2y0\r\n0HMGnWR+fz6IawZQrS08caaJshusYPCHx/aCamZzTGZ6xGUgo4FmBoLeOueh\r\ndLv+QFtWUzwKlxSMD/hxhUlgEKBhUzO1FVw=\r\n=iwu1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hank7444","email":"hank7444@gmail.com"},"maintainers":[{"name":"meifutoolate","email":"meifutoolate@gmail.com"},{"name":"hank7444","email":"hank7444@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-multipart_1.1.0_1677852032089_0.46703703181032097"},"_hasShrinkwrap":false}},"time":{"created":"2022-07-15T06:01:37.060Z","1.0.7":"2022-07-15T06:01:37.316Z","modified":"2023-03-03T14:00:32.368Z","1.0.8":"2023-03-03T08:43:03.077Z","1.0.9":"2023-03-03T08:49:53.306Z","1.0.10":"2023-03-03T11:16:38.171Z","1.0.11":"2023-03-03T12:25:07.922Z","1.0.12":"2023-03-03T13:54:57.204Z","1.0.13":"2023-03-03T13:57:19.164Z","1.1.0":"2023-03-03T14:00:32.240Z"},"maintainers":[{"name":"meifutoolate","email":"meifutoolate@gmail.com"},{"name":"hank7444","email":"hank7444@gmail.com"}],"description":"Multipart plugin for Fastify","homepage":"https://github.com/hank7444/fastify-multipart#readme","keywords":["fastify","multipart","form"],"repository":{"type":"git","url":"git+https://github.com/hank7444/fastify-multipart.git"},"author":{"name":"Cheng-Han.Kuo","email":"cheng-han.kuo@changehealthcare.com"},"bugs":{"url":"https://github.com/hank7444/fastify-multipart/issues"},"license":"MIT","readme":"# fastify-multipart\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/fastify/fastify-multipart.svg)](https://greenkeeper.io/) \n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)\n[![Build Status](https://travis-ci.org/fastify/fastify-multipart.svg?branch=master)](https://travis-ci.org/fastify/fastify-multipart)\n\nFastify plugin to parse the multipart content-type.\n\nUnder the hood it uses [busboy](https://github.com/mscdex/busboy).\n\n## Install\n```\nnpm i fastify-multipart\n```\n\n## Usage\n\n```js\nconst fastify = require('fastify')()\nconst concat = require('concat-stream')\nconst fs = require('fs')\nconst pump = require('pump')\n\nfastify.register(require('fastify-multipart'))\n\nfastify.post('/', function (req, reply) {\n  // you can use this request's decorator to check if the request is multipart\n  if (!req.isMultipart()) {\n    reply.code(400).send(new Error('Request is not multipart'))\n    return\n  }\n\n  const mp = req.multipart(handler, onEnd)\n  \n  // mp is an instance of\n  // https://www.npmjs.com/package/busboy\n\n  mp.on('field', function (key, value) {\n    console.log('form-data', key, value)\n  })\n\n  function onEnd(err) {\n    console.log('upload completed')\n    reply.code(200).send()\n  }\n\n  function handler (field, file, filename, encoding, mimetype) {\n    // to accumulate the file in memory! Be careful!\n    //\n    // file.pipe(concat(function (buf) {\n    //   console.log('received', filename, 'size', buf.length)\n    // }))\n    //\n    // or\n\n    pump(file, fs.createWriteStream('a-destination'))\n\n    // be careful of permission issues on disk and not overwrite\n    // sensitive files that could cause security risks\n    \n    // also, consider that if the file stream is not consumed, the \n    // onEnd callback won't be called\n  }\n})\n\nfastify.listen(3000, err => {\n  if (err) throw err\n  console.log(`server listening on ${fastify.server.address().port}`)\n})\n```\n\nYou can also pass optional arguments to busboy when registering with fastify. This is useful for setting limits on the content that can be uploaded. A full list of available options can be found in the [busboy documentation](https://github.com/mscdex/busboy#busboy-methods).\n\n**Note**: if the file stream that is provided to the handler function is not consumed (like in the example above with the usage of pump) the onEnd callback won't be called at the end of the multipart processing.\nThis behavior is inherited from [busboy](https://github.com/mscdex/busboy).\n\n```js\nfastify.register(require('fastify-multipart'), {\n  limits: {\n    fieldNameSize: 100, // Max field name size in bytes\n    fieldSize: 1000000, // Max field value size in bytes\n    fields: 10,         // Max number of non-file fields\n    fileSize: 100,      // For multipart forms, the max file size\n    files: 1,           // Max number of file fields\n    headerPairs: 2000   // Max number of header key=>value pairs\n  }\n});\n```\n\nIf you do set upload limits, be sure to listen for limit events in the handler method. An error or exception will not occur if a limit is reached, but rather the stream will be truncated. These events are documented in more detail [here](https://github.com/mscdex/busboy#busboy-special-events).\n\n```js\n\nmp.on('partsLimit', () => console.log('Maximum number of form parts reached'));\n\nmp.on('filesLimit', () => console.log('Maximum number of files reached'));\n\nmp.on('fieldsLimit', () => console.log('Maximim number of fields reached'));\n\nfunction handler (field, file, filename, encoding, mimetype) {\n  file.on('limit', () => console.log('File size limit reached'));\n}              \n```\n\nNote, if the file size limit is exceeded the file will not be attached to the body. \n\nAdditionally, you can pass per-request options to the req.multipart function\n\n```js\nfastify.post('/', function (req, reply) {\n  const options = { limits: { fileSize: 1000 } };\n  const mp = req.multipart(handler, done, options)\n\n  function done (err) {\n    console.log('upload completed')\n    reply.code(200).send()\n  }\n\n  function handler (field, file, filename, encoding, mimetype) {\n    pump(file, fs.createWriteStream('a-destination'))\n  }\n})\n```\n\nYou can also use all the parsed HTTP request parameters to the body:\n\n```js\nconst options = {\n  addToBody: true,\n  sharedSchemaId: 'MultipartFileType', // Optional shared schema id\n  onFile: (fieldName, stream, filename, encoding, mimetype, body) => {\n    // Manage the file stream like you need\n    // By default the data will be added in a Buffer\n    // Be careful to accumulate the file in memory!\n    // It is MANDATORY consume the stream, otherwise the response will not be processed!\n    // The body parameter is the object that will be added to the request\n    stream.resume()\n  },\n  limit: { /*...*/ } // You can the limit options in any case\n}\n\nfastify.register(require('fastify-multipart'), options)\n\nfastify.post('/', function (req, reply) {\n  console.log(req.body)\n  // This will print out:\n  // {\n  //   myStringField: 'example',\n  //   anotherOne: 'example',\n  //   myFilenameField: [{\n  //     data: <Buffer>,\n  //     encoding: '7bit',\n  //     filename: 'README.md',\n  //     limit: false,\n  //     mimetype: 'text/markdown'\n  //   }]\n  // }\n\n  reply.code(200).send()\n})\n```\n\nThe options `onFile` and `sharedSchemaId` will be used only when `addToBody: true`.\n\nThe `onFile` option define how the file streams are managed:\n+ if you don't set it the `req.body.<fieldName>[index].data` will be a Buffer with the data loaded in memory\n+ if you set it with a function you **must** consume the stream, and the `req.body.<fieldName>[index].data` will be an empty array\n\n**Note**: By default values in fields with files have array type, so if there's only one file uploaded, you can access it via `req.body.<fieldName>[0].data`. Regular fields become an array only when multiple values are provided.\n\nThe `sharedSchemaId` parameter must provide a string ID and a [shared schema](https://github.com/fastify/fastify/blob/master/docs/Validation-and-Serialization.md#adding-a-shared-schema) will be added to your fastify instance so you will be able to apply the validation to your service like this:\n\n```js\nfastify.post('/upload', {\n  schema: {\n    body: {\n      type: 'object',\n      required: ['myStringField', 'myFilenameField'],\n      properties: {\n        myStringField: { type: 'string' },\n        myFilenameField: { type: 'array', items: 'MultipartFileType#' }\n    }\n  }\n}, function (req, reply) {\n  reply.send('done')\n})\n```\n\nThe shared schema added will be like this:\n\n```js\n{\n  type: 'object',\n  properties: {\n    encoding: { type: 'string' },\n    filename: { type: 'string' },\n    limit: { type: 'boolean' },\n    mimetype: { type: 'string' }\n  }\n}\n```\n\n## Acknowledgements\n\nThis project is kindly sponsored by:\n- [nearForm](http://nearform.com)\n- [LetzDoIt](http://www.letzdoitapp.com/)\n\n## License\n\nLicensed under [MIT](./LICENSE).\n","readmeFilename":"README.md"}