{"_id":"@fastify/busboy","_rev":"298566","name":"@fastify/busboy","description":"A streaming parser for HTML form data for node.js","dist-tags":{"latest":"2.1.0","next":"1.0.0-next2"},"maintainers":[{"name":"airhorns","email":""},{"name":"allevo","email":""},{"name":"climba03003","email":""},{"name":"coopflow","email":""},{"name":"delvedor","email":""},{"name":"eomm","email":""},{"name":"fox1t","email":""},{"name":"galvez","email":""},{"name":"gurgunday","email":""},{"name":"jsumners","email":""},{"name":"kibertoad","email":""},{"name":"matteo.collina","email":""},{"name":"metcoder95","email":""},{"name":"rafaelgss","email":""},{"name":"simenb","email":""},{"name":"simoneb","email":""},{"name":"starptech","email":""},{"name":"zekth","email":""}],"time":{"modified":"2024-01-15T13:44:09.000Z","created":"2021-11-29T22:21:13.703Z","2.1.0":"2023-11-12T11:19:50.196Z","2.0.0":"2023-09-28T13:27:00.533Z","1.2.1":"2023-01-08T10:43:40.566Z","1.2.0":"2023-01-06T08:28:37.106Z","1.1.0":"2022-06-08T22:18:17.110Z","1.0.0":"2021-12-04T21:37:11.881Z","1.0.0-next2":"2021-12-04T20:39:59.966Z","1.0.0-next1":"2021-11-29T22:21:13.703Z"},"users":{},"author":{"name":"Brian White","email":"mscdex@mscdex.net"},"repository":{"type":"git","url":"git+https://github.com/fastify/busboy.git"},"versions":{"2.1.0":{"name":"@fastify/busboy","version":"2.1.0","private":false,"author":{"name":"Brian White","email":"mscdex@mscdex.net"},"contributors":[{"name":"Igor Savin","email":"kibertoad@gmail.com","url":"https://github.com/kibertoad"},{"name":"Aras Abbasi","email":"aras.abbasi@gmail.com","url":"https://github.com/uzlopak"}],"description":"A streaming parser for HTML form data for node.js","main":"lib/main","type":"commonjs","types":"lib/main.d.ts","scripts":{"bench:busboy":"cd benchmarks && npm install && npm run benchmark-fastify","bench:dicer":"node bench/dicer/dicer-bench-multipart-parser.js","coveralls":"nyc report --reporter=lcov","lint":"npm run lint:standard","lint:everything":"npm run lint && npm run test:types","lint:fix":"standard --fix","lint:standard":"standard --verbose | snazzy","test:mocha":"tap","test:types":"tsd","test:coverage":"nyc npm run test","test":"npm run test:mocha"},"engines":{"node":">=14"},"devDependencies":{"@types/node":"^20.1.0","busboy":"^1.0.0","photofinish":"^1.8.0","snazzy":"^9.0.0","standard":"^17.0.0","tap":"^16.3.8","tinybench":"^2.5.1","tsd":"^0.29.0","typescript":"^5.0.2"},"keywords":["uploads","forms","multipart","form-data"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/busboy.git"},"tsd":{"directory":"test/types","compilerOptions":{"esModuleInterop":false,"module":"commonjs","target":"ES2017"}},"standard":{"globals":["describe","it"],"ignore":["bench"]},"_id":"@fastify/busboy@2.1.0","gitHead":"d1e4bf4b964047ffdf6e93023fe4cfef0feb7efb","bugs":{"url":"https://github.com/fastify/busboy/issues"},"homepage":"https://github.com/fastify/busboy#readme","_nodeVersion":"20.8.0","_npmVersion":"10.1.0","dist":{"shasum":"0709e9f4cb252351c609c6e6d8d6779a8d25edff","size":20114,"noattachment":false,"key":"/@fastify/busboy/-/@fastify/busboy-2.1.0.tgz","tarball":"http://name.csiicloud.com:7001/@fastify/busboy/download/@fastify/busboy-2.1.0.tgz"},"_npmUser":{"name":"eomm","email":"behemoth89@gmail.com"},"directories":{},"maintainers":[{"name":"airhorns","email":""},{"name":"allevo","email":""},{"name":"climba03003","email":""},{"name":"coopflow","email":""},{"name":"delvedor","email":""},{"name":"eomm","email":""},{"name":"fox1t","email":""},{"name":"galvez","email":""},{"name":"gurgunday","email":""},{"name":"jsumners","email":""},{"name":"kibertoad","email":""},{"name":"matteo.collina","email":""},{"name":"metcoder95","email":""},{"name":"rafaelgss","email":""},{"name":"simenb","email":""},{"name":"simoneb","email":""},{"name":"starptech","email":""},{"name":"zekth","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/busboy_2.1.0_1699787989993_0.23891525562201998"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-12T11:19:50.196Z","publish_time":1699787990196,"_source_registry_name":"default","_cnpm_publish_time":1699787990196},"2.0.0":{"name":"@fastify/busboy","version":"2.0.0","private":false,"author":{"name":"Brian White","email":"mscdex@mscdex.net"},"contributors":[{"name":"Igor Savin","email":"kibertoad@gmail.com","url":"https://github.com/kibertoad"},{"name":"Aras Abbasi","email":"aras.abbasi@gmail.com","url":"https://github.com/uzlopak"}],"description":"A streaming parser for HTML form data for node.js","main":"lib/main","types":"lib/main.d.ts","scripts":{"bench:busboy":"cd benchmarks && npm install && npm run benchmark-fastify","bench:dicer":"node bench/dicer/dicer-bench-multipart-parser.js","coveralls":"nyc report --reporter=lcov","lint":"npm run lint:standard","lint:everything":"npm run lint && npm run test:types","lint:fix":"standard --fix","lint:standard":"standard --verbose | snazzy","test:mocha":"mocha test","test:types":"tsd","test:coverage":"nyc npm run test","test":"npm run test:mocha"},"engines":{"node":">=14"},"devDependencies":{"@types/node":"^20.1.0","busboy":"^1.0.0","chai":"^4.3.6","eslint":"^8.23.0","eslint-config-standard":"^17.0.0","eslint-plugin-n":"^16.0.0","mocha":"^10.0.0","nyc":"^15.1.0","photofinish":"^1.8.0","snazzy":"^9.0.0","standard":"^17.0.0","tsd":"^0.29.0","typescript":"^5.0.2"},"keywords":["uploads","forms","multipart","form-data"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/busboy.git"},"tsd":{"directory":"test/types","compilerOptions":{"esModuleInterop":false,"module":"commonjs","target":"ES2017"}},"standard":{"globals":["describe","it"],"ignore":["bench"]},"_id":"@fastify/busboy@2.0.0","gitHead":"5f71e5fc271d81e277b90f77d6122684e00238fb","bugs":{"url":"https://github.com/fastify/busboy/issues"},"homepage":"https://github.com/fastify/busboy#readme","_nodeVersion":"20.6.1","_npmVersion":"9.8.1","dist":{"shasum":"f22824caff3ae506b18207bad4126dbc6ccdb6b8","size":17447,"noattachment":false,"key":"/@fastify/busboy/-/@fastify/busboy-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/@fastify/busboy/download/@fastify/busboy-2.0.0.tgz"},"_npmUser":{"name":"kibertoad","email":"iselwin@gmail.com"},"directories":{},"maintainers":[{"name":"airhorns","email":""},{"name":"allevo","email":""},{"name":"climba03003","email":""},{"name":"coopflow","email":""},{"name":"delvedor","email":""},{"name":"eomm","email":""},{"name":"fox1t","email":""},{"name":"galvez","email":""},{"name":"gurgunday","email":""},{"name":"jsumners","email":""},{"name":"kibertoad","email":""},{"name":"matteo.collina","email":""},{"name":"metcoder95","email":""},{"name":"rafaelgss","email":""},{"name":"simenb","email":""},{"name":"simoneb","email":""},{"name":"starptech","email":""},{"name":"zekth","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/busboy_2.0.0_1695907620278_0.8437674673648068"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-28T13:27:00.533Z","publish_time":1695907620533,"_source_registry_name":"default","_cnpm_publish_time":1695907620533},"1.2.1":{"name":"@fastify/busboy","version":"1.2.1","private":false,"author":{"name":"Brian White","email":"mscdex@mscdex.net"},"contributors":[{"name":"Igor Savin","email":"kibertoad@gmail.com","url":"https://github.com/kibertoad"},{"name":"Aras Abbasi","email":"aras.abbasi@gmail.com","url":"https://github.com/uzlopak"}],"description":"A streaming parser for HTML form data for node.js","main":"lib/main","types":"lib/main.d.ts","scripts":{"bench:busboy":"cd benchmarks && npm install && npm run benchmark-fastify","bench:dicer":"node bench/dicer/dicer-bench-multipart-parser.js","coveralls":"nyc report --reporter=lcov","lint":"npm run lint:standard","lint:everything":"npm run lint && npm run test:types","lint:fix":"standard --fix","lint:standard":"standard --verbose | snazzy","test:mocha":"mocha test","test:types":"tsd","test:coverage":"nyc npm run test","test":"npm run test:mocha"},"engines":{"node":">=14"},"dependencies":{"text-decoding":"^1.0.0"},"devDependencies":{"@types/node":"^18.0.0","busboy":"^1.0.0","chai":"^4.3.6","eslint":"^8.23.0","eslint-config-standard":"^17.0.0","eslint-plugin-n":"^15.2.5","mocha":"^10.0.0","nyc":"^15.1.0","photofinish":"^1.8.0","snazzy":"^9.0.0","standard":"^17.0.0","tsd":"^0.25.0","typescript":"^4.5.2"},"keywords":["uploads","forms","multipart","form-data"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/busboy.git"},"tsd":{"directory":"test/types","compilerOptions":{"esModuleInterop":false,"module":"commonjs","target":"ES2017"}},"standard":{"globals":["describe","it"],"ignore":["bench"]},"gitHead":"699b31655a62b0a64a061aa1cedaa80a80a0543d","bugs":{"url":"https://github.com/fastify/busboy/issues"},"homepage":"https://github.com/fastify/busboy#readme","_id":"@fastify/busboy@1.2.1","_nodeVersion":"16.13.0","_npmVersion":"8.10.0","dist":{"shasum":"9c6db24a55f8b803b5222753b24fe3aea2ba9ca3","size":17573,"noattachment":false,"key":"/@fastify/busboy/-/@fastify/busboy-1.2.1.tgz","tarball":"http://name.csiicloud.com:7001/@fastify/busboy/download/@fastify/busboy-1.2.1.tgz"},"_npmUser":{"name":"eomm","email":"behemoth89@gmail.com"},"directories":{},"maintainers":[{"name":"airhorns","email":""},{"name":"allevo","email":""},{"name":"climba03003","email":""},{"name":"coopflow","email":""},{"name":"delvedor","email":""},{"name":"eomm","email":""},{"name":"fox1t","email":""},{"name":"galvez","email":""},{"name":"gurgunday","email":""},{"name":"jsumners","email":""},{"name":"kibertoad","email":""},{"name":"matteo.collina","email":""},{"name":"metcoder95","email":""},{"name":"rafaelgss","email":""},{"name":"simenb","email":""},{"name":"simoneb","email":""},{"name":"starptech","email":""},{"name":"zekth","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/busboy_1.2.1_1673174620397_0.40586458278088555"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-08T10:43:44.783Z","publish_time":1673174620566,"_cnpm_publish_time":1673174620566},"1.2.0":{"name":"@fastify/busboy","version":"1.2.0","private":false,"author":{"name":"Brian White","email":"mscdex@mscdex.net"},"contributors":[{"name":"Igor Savin","email":"kibertoad@gmail.com","url":"https://github.com/kibertoad"},{"name":"Aras Abbasi","email":"aras.abbasi@gmail.com","url":"https://github.com/uzlopak"}],"description":"A streaming parser for HTML form data for node.js","main":"lib/main","types":"lib/main.d.ts","scripts":{"bench:busboy":"cd benchmarks && npm install && npm run benchmark-fastify","bench:dicer":"node bench/dicer/dicer-bench-multipart-parser.js","coveralls":"nyc report --reporter=lcov","lint":"npm run lint:standard","lint:everything":"npm run lint && npm run test:types","lint:fix":"standard --fix","lint:standard":"standard --verbose | snazzy","test:mocha":"mocha test","test:types":"tsd","test:coverage":"nyc npm run test","test":"npm run test:mocha"},"engines":{"node":">=14"},"dependencies":{"text-decoding":"^1.0.0"},"devDependencies":{"@types/node":"^18.0.0","busboy":"^1.0.0","chai":"^4.3.6","eslint":"^8.23.0","eslint-config-standard":"^17.0.0","eslint-plugin-n":"^15.2.5","mocha":"^10.0.0","nyc":"^15.1.0","photofinish":"^1.8.0","snazzy":"^9.0.0","standard":"^17.0.0","tsd":"^0.25.0","typescript":"^4.5.2"},"keywords":["uploads","forms","multipart","form-data"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/busboy.git"},"tsd":{"directory":"test/types","compilerOptions":{"esModuleInterop":false,"module":"commonjs","target":"ES2017"}},"standard":{"globals":["describe","it"],"ignore":["bench"]},"gitHead":"f7aef852dae44feaf81d9df3f7ae01bb383fdb7c","bugs":{"url":"https://github.com/fastify/busboy/issues"},"homepage":"https://github.com/fastify/busboy#readme","_id":"@fastify/busboy@1.2.0","_nodeVersion":"18.6.0","_npmVersion":"8.13.2","dist":{"shasum":"0db842e132cfc282b753eab70ab606f2475acee7","size":17604,"noattachment":false,"key":"/@fastify/busboy/-/@fastify/busboy-1.2.0.tgz","tarball":"http://name.csiicloud.com:7001/@fastify/busboy/download/@fastify/busboy-1.2.0.tgz"},"_npmUser":{"name":"eomm","email":"behemoth89@gmail.com"},"directories":{},"maintainers":[{"name":"airhorns","email":""},{"name":"allevo","email":""},{"name":"climba03003","email":""},{"name":"coopflow","email":""},{"name":"delvedor","email":""},{"name":"eomm","email":""},{"name":"fox1t","email":""},{"name":"galvez","email":""},{"name":"gurgunday","email":""},{"name":"jsumners","email":""},{"name":"kibertoad","email":""},{"name":"matteo.collina","email":""},{"name":"metcoder95","email":""},{"name":"rafaelgss","email":""},{"name":"simenb","email":""},{"name":"simoneb","email":""},{"name":"starptech","email":""},{"name":"zekth","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/busboy_1.2.0_1672993716964_0.7070179087015624"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-06T08:30:41.874Z","publish_time":1672993717106,"_cnpm_publish_time":1672993717106},"1.1.0":{"name":"@fastify/busboy","version":"1.1.0","private":false,"author":{"name":"Brian White","email":"mscdex@mscdex.net"},"contributors":[{"name":"Igor Savin","email":"kibertoad@gmail.com","url":"https://github.com/kibertoad"},{"name":"Aras Abbasi","email":"aras.abbasi@gmail.com","url":"https://github.com/uzlopak"}],"description":"A streaming parser for HTML form data for node.js","main":"lib/main","types":"lib/main.d.ts","scripts":{"bench:busboy":"cd benchmarks && npm install && npm run benchmark-fastify","bench:dicer":"node bench/dicer/dicer-bench-multipart-parser.js","coveralls":"nyc report --reporter=lcov","lint":"npm run lint:standard","lint:everything":"npm run lint && npm run test:types","lint:fix":"standard --fix","lint:standard":"standard --verbose | snazzy","test:mocha":"mocha test","test:types":"tsd","test:coverage":"nyc npm run test","test":"npm run test:mocha"},"engines":{"node":">=10.17.0"},"dependencies":{"text-decoding":"^1.0.0"},"devDependencies":{"@types/node":"^17.0.0","busboy":"^1.0.0","chai":"^4.3.4","eslint":"^7.32.0","eslint-config-standard":"^16.0.3","eslint-plugin-node":"^11.1.0","mocha":"^10.0.0","nyc":"^15.1.0","photofinish":"^1.8.0","snazzy":"^9.0.0","standard":"^17.0.0","tsd":"^0.20.0","typescript":"^4.5.2"},"keywords":["uploads","forms","multipart","form-data"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/busboy.git"},"tsd":{"directory":"test/types","compilerOptions":{"esModuleInterop":false,"module":"commonjs","target":"ES2017"}},"standard":{"globals":["describe","it"],"ignore":["bench"]},"gitHead":"5e7e2ed176e76b64f743fb6480b79be06ac6e0b2","bugs":{"url":"https://github.com/fastify/busboy/issues"},"homepage":"https://github.com/fastify/busboy#readme","_id":"@fastify/busboy@1.1.0","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"shasum":"4472f856e2bb5a9ee34ad64b93891b73b73537ca","size":16762,"noattachment":false,"key":"/@fastify/busboy/-/@fastify/busboy-1.1.0.tgz","tarball":"http://name.csiicloud.com:7001/@fastify/busboy/download/@fastify/busboy-1.1.0.tgz"},"_npmUser":{"name":"kibertoad","email":"iselwin@gmail.com"},"directories":{},"maintainers":[{"name":"airhorns","email":""},{"name":"allevo","email":""},{"name":"climba03003","email":""},{"name":"coopflow","email":""},{"name":"delvedor","email":""},{"name":"eomm","email":""},{"name":"fox1t","email":""},{"name":"galvez","email":""},{"name":"gurgunday","email":""},{"name":"jsumners","email":""},{"name":"kibertoad","email":""},{"name":"matteo.collina","email":""},{"name":"metcoder95","email":""},{"name":"rafaelgss","email":""},{"name":"simenb","email":""},{"name":"simoneb","email":""},{"name":"starptech","email":""},{"name":"zekth","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/busboy_1.1.0_1654726696923_0.8438590372378669"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-08T22:45:02.910Z","publish_time":1654726697110,"_cnpm_publish_time":1654726697110},"1.0.0":{"name":"@fastify/busboy","version":"1.0.0","private":false,"author":{"name":"Brian White","email":"mscdex@mscdex.net"},"contributors":[{"name":"Igor Savin","email":"kibertoad@gmail.com","url":"https://github.com/kibertoad"},{"name":"Aras Abbasi","email":"aras.abbasi@gmail.com","url":"https://github.com/uzlopak"}],"description":"A streaming parser for HTML form data for node.js","main":"lib/main","types":"lib/main.d.ts","scripts":{"bench:busboy":"node bench/fastify-busboy-bench.js","bench:dicer":"node bench/dicer/dicer-bench-multipart-parser.js","coveralls":"nyc report --reporter=lcov","lint":"npm run lint:standard","lint:everything":"npm run lint && npm run test:types","lint:fix":"standard --fix","lint:standard":"standard --verbose | snazzy","test:mocha":"mocha test","test:types":"tsd","test:coverage":"nyc npm run test","test":"npm run test:mocha"},"engines":{"node":">=10.17.0"},"dependencies":{"text-decoding":"^1.0.0"},"devDependencies":{"@types/node":"^16.11.10","busboy":"^0.3.1","chai":"^4.3.4","eslint":"^7.32.0","eslint-config-standard":"^16.0.3","eslint-plugin-node":"^11.1.0","mocha":"^9.1.3","nyc":"^15.1.0","photofinish":"^1.8.0","snazzy":"^9.0.0","standard":"^16.0.4","tsd":"^0.19.0","typescript":"^4.5.2"},"keywords":["uploads","forms","multipart","form-data"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/busboy.git"},"tsd":{"directory":"test/types","compilerOptions":{"esModuleInterop":false,"module":"commonjs","target":"ES2017"}},"standard":{"globals":["describe","it"],"ignore":["bench"]},"gitHead":"3bf9980bcc31e1ffa8fdaa1289599ff23e3b7dba","bugs":{"url":"https://github.com/fastify/busboy/issues"},"homepage":"https://github.com/fastify/busboy#readme","_id":"@fastify/busboy@1.0.0","_nodeVersion":"16.12.0","_npmVersion":"8.1.0","dist":{"shasum":"f73182e61955ab91f8ec5a137fda2c9cee366dbd","size":15452,"noattachment":false,"key":"/@fastify/busboy/-/@fastify/busboy-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/@fastify/busboy/download/@fastify/busboy-1.0.0.tgz"},"_npmUser":{"name":"kibertoad","email":"iselwin@gmail.com"},"directories":{},"maintainers":[{"name":"airhorns","email":""},{"name":"allevo","email":""},{"name":"climba03003","email":""},{"name":"coopflow","email":""},{"name":"delvedor","email":""},{"name":"eomm","email":""},{"name":"fox1t","email":""},{"name":"galvez","email":""},{"name":"gurgunday","email":""},{"name":"jsumners","email":""},{"name":"kibertoad","email":""},{"name":"matteo.collina","email":""},{"name":"metcoder95","email":""},{"name":"rafaelgss","email":""},{"name":"simenb","email":""},{"name":"simoneb","email":""},{"name":"starptech","email":""},{"name":"zekth","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/busboy_1.0.0_1638653831756_0.6782136573536353"},"_hasShrinkwrap":false,"publish_time":1638653831881,"_cnpm_publish_time":1638653831881,"_cnpmcore_publish_time":"2021-12-16T18:41:45.357Z"},"1.0.0-next2":{"name":"@fastify/busboy","version":"1.0.0-next2","private":false,"author":{"name":"Brian White","email":"mscdex@mscdex.net"},"contributors":[{"name":"Igor Savin","email":"kibertoad@gmail.com","url":"https://github.com/kibertoad"},{"name":"Aras Abbasi","email":"aras.abbasi@gmail.com","url":"https://github.com/uzlopak"}],"description":"A streaming parser for HTML form data for node.js","main":"lib/main","types":"lib/main.d.ts","scripts":{"bench:busboy":"node bench/fastify-busboy-bench.js","bench:dicer":"node bench/dicer/dicer-bench-multipart-parser.js","coveralls":"nyc report --reporter=lcov","lint":"npm run lint:standard","lint:everything":"npm run lint && npm run test:types","lint:fix":"standard --fix","lint:standard":"standard --verbose | snazzy","test:mocha":"mocha test","test:types":"tsd","test:coverage":"nyc npm run test","test":"npm run test:mocha"},"engines":{"node":">=10.17.0"},"dependencies":{"text-decoding":"^1.0.0"},"devDependencies":{"@types/node":"^16.11.10","busboy":"^0.3.1","chai":"^4.3.4","eslint":"^7.32.0","eslint-config-standard":"^16.0.3","eslint-plugin-node":"^11.1.0","mocha":"^9.1.3","nyc":"^15.1.0","photofinish":"^1.8.0","snazzy":"^9.0.0","standard":"^16.0.4","tsd":"^0.19.0","typescript":"^4.5.2"},"keywords":["uploads","forms","multipart","form-data"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/busboy.git"},"tsd":{"directory":"test/types","compilerOptions":{"esModuleInterop":false,"module":"commonjs","target":"ES2017"}},"standard":{"globals":["describe","it"],"ignore":["bench"]},"readmeFilename":"README.md","gitHead":"a7a876b64b6198f1b4ca65577ed1287ae6bca0bd","bugs":{"url":"https://github.com/fastify/busboy/issues"},"homepage":"https://github.com/fastify/busboy#readme","_id":"@fastify/busboy@1.0.0-next2","_nodeVersion":"16.12.0","_npmVersion":"8.1.0","dist":{"shasum":"c4efcda1a0f27b7167718d25a38acefabe5f2a02","size":15443,"noattachment":false,"key":"/@fastify/busboy/-/@fastify/busboy-1.0.0-next2.tgz","tarball":"http://name.csiicloud.com:7001/@fastify/busboy/download/@fastify/busboy-1.0.0-next2.tgz"},"_npmUser":{"name":"kibertoad","email":"iselwin@gmail.com"},"directories":{},"maintainers":[{"name":"airhorns","email":""},{"name":"allevo","email":""},{"name":"climba03003","email":""},{"name":"coopflow","email":""},{"name":"delvedor","email":""},{"name":"eomm","email":""},{"name":"fox1t","email":""},{"name":"galvez","email":""},{"name":"gurgunday","email":""},{"name":"jsumners","email":""},{"name":"kibertoad","email":""},{"name":"matteo.collina","email":""},{"name":"metcoder95","email":""},{"name":"rafaelgss","email":""},{"name":"simenb","email":""},{"name":"simoneb","email":""},{"name":"starptech","email":""},{"name":"zekth","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/busboy_1.0.0-next2_1638650399720_0.4605750121075931"},"_hasShrinkwrap":false,"publish_time":1638650399966,"_cnpm_publish_time":1638650399966,"_cnpmcore_publish_time":"2021-12-16T18:41:45.653Z"},"1.0.0-next1":{"name":"@fastify/busboy","version":"1.0.0-next1","private":false,"author":{"name":"Brian White","email":"mscdex@mscdex.net"},"contributors":[{"name":"Igor Savin","email":"kibertoad@gmail.com","url":"https://github.com/kibertoad"},{"name":"Aras Abbasi","email":"aras.abbasi@gmail.com","url":"https://github.com/uzlopak"}],"description":"A streaming parser for HTML form data for node.js","main":"lib/main","types":"lib/main.d.ts","scripts":{"bench:dicer":"node deps/dicer/bench/dicer-bench-multipart-parser.js","coveralls":"nyc report --reporter=lcov","lint":"eslint .","lint:everything":"npm run lint && npm run test:types","test:mocha":"mocha test","test:types":"tsd","test:coverage":"nyc npm run test","test":"npm run test:mocha"},"engines":{"node":">=10.17.0"},"devDependencies":{"@types/node":"^16.11.10","chai":"^4.3.4","eslint":"^8.3.0","eslint-plugin-node":"^11.1.0","mocha":"^9.1.3","nyc":"^15.1.0","tsd":"^0.19.0","typescript":"^4.5.2"},"keywords":["uploads","forms","multipart","form-data"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fastify/busboy.git"},"tsd":{"directory":"test/types","compilerOptions":{"esModuleInterop":false,"module":"commonjs","target":"ES2017"}},"gitHead":"02eb3ce5b144ec8b72ad333ea030d50997e86a15","bugs":{"url":"https://github.com/fastify/busboy/issues"},"homepage":"https://github.com/fastify/busboy#readme","_id":"@fastify/busboy@1.0.0-next1","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"shasum":"3d3d0f7b6ed9f40ffe21eb433bc353889281752f","size":212178,"noattachment":false,"key":"/@fastify/busboy/-/@fastify/busboy-1.0.0-next1.tgz","tarball":"http://name.csiicloud.com:7001/@fastify/busboy/download/@fastify/busboy-1.0.0-next1.tgz"},"_npmUser":{"name":"kibertoad","email":"iselwin@gmail.com"},"directories":{},"maintainers":[{"name":"airhorns","email":""},{"name":"allevo","email":""},{"name":"climba03003","email":""},{"name":"coopflow","email":""},{"name":"delvedor","email":""},{"name":"eomm","email":""},{"name":"fox1t","email":""},{"name":"galvez","email":""},{"name":"gurgunday","email":""},{"name":"jsumners","email":""},{"name":"kibertoad","email":""},{"name":"matteo.collina","email":""},{"name":"metcoder95","email":""},{"name":"rafaelgss","email":""},{"name":"simenb","email":""},{"name":"simoneb","email":""},{"name":"starptech","email":""},{"name":"zekth","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/busboy_1.0.0-next1_1638224473463_0.9839171413937888"},"_hasShrinkwrap":false,"publish_time":1638224473703,"_cnpm_publish_time":1638224473703,"_cnpmcore_publish_time":"2021-12-16T18:41:46.434Z"}},"readme":"# busboy\n\n<div align=\"center\">\n\n[![Build Status](https://github.com/fastify/busboy/workflows/ci/badge.svg)](https://github.com/fastify/busboy/actions)\n[![Coverage Status](https://coveralls.io/repos/fastify/busboy/badge.svg?branch=master)](https://coveralls.io/r/fastify/busboy?branch=master)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/)\n[![Security Responsible Disclosure](https://img.shields.io/badge/Security-Responsible%20Disclosure-yellow.svg)](https://github.com/nodejs/security-wg/blob/HEAD/processes/responsible_disclosure_template.md)\n\n</div>\n\n<div align=\"center\">\n\n[![NPM version](https://img.shields.io/npm/v/@fastify/busboy.svg?style=flat)](https://www.npmjs.com/package/@fastify/busboy)\n[![NPM downloads](https://img.shields.io/npm/dm/@fastify/busboy.svg?style=flat)](https://www.npmjs.com/package/@fastify/busboy)\n\n</div>\n\nDescription\n===========\n\nA Node.js module for parsing incoming HTML form data.\n\nThis is an officially supported fork by [fastify](https://github.com/fastify/) organization of the amazing library [originally created](https://github.com/mscdex/busboy) by Brian White,\naimed at addressing long-standing issues with it.\n\nBenchmark (Mean time for 500 Kb payload, 2000 cycles, 1000 cycle warmup):\n\n| Library               | Version | Mean time in nanoseconds (less is better) |\n|-----------------------|---------|-------------------------------------------|\n| busboy                | 0.3.1   | `340114`                                  |\n| @fastify/busboy       | 1.0.0   | `270984`                                  |\n\n[Changelog](https://github.com/fastify/busboy/blob/master/CHANGELOG.md) since busboy 0.31.\n\nRequirements\n============\n\n* [Node.js](http://nodejs.org/) 10+\n\n\nInstall\n=======\n\n    npm i @fastify/busboy\n\n\nExamples\n========\n\n* Parsing (multipart) with default options:\n\n```javascript\nconst http = require('node:http');\nconst { inspect } = require('node:util');\nconst Busboy = require('busboy');\n\nhttp.createServer((req, res) => {\n  if (req.method === 'POST') {\n    const busboy = new Busboy({ headers: req.headers });\n    busboy.on('file', (fieldname, file, filename, encoding, mimetype) => {\n      console.log(`File [${fieldname}]: filename: ${filename}, encoding: ${encoding}, mimetype: ${mimetype}`);\n      file.on('data', data => {\n        console.log(`File [${fieldname}] got ${data.length} bytes`);\n      });\n      file.on('end', () => {\n        console.log(`File [${fieldname}] Finished`);\n      });\n    });\n    busboy.on('field', (fieldname, val, fieldnameTruncated, valTruncated, encoding, mimetype) => {\n      console.log(`Field [${fieldname}]: value: ${inspect(val)}`);\n    });\n    busboy.on('finish', () => {\n      console.log('Done parsing form!');\n      res.writeHead(303, { Connection: 'close', Location: '/' });\n      res.end();\n    });\n    req.pipe(busboy);\n  } else if (req.method === 'GET') {\n    res.writeHead(200, { Connection: 'close' });\n    res.end(`<html><head></head><body>\n               <form method=\"POST\" enctype=\"multipart/form-data\">\n                <input type=\"text\" name=\"textfield\"><br>\n                <input type=\"file\" name=\"filefield\"><br>\n                <input type=\"submit\">\n              </form>\n            </body></html>`);\n  }\n}).listen(8000, () => {\n  console.log('Listening for requests');\n});\n\n// Example output, using http://nodejs.org/images/ryan-speaker.jpg as the file:\n//\n// Listening for requests\n// File [filefield]: filename: ryan-speaker.jpg, encoding: binary\n// File [filefield] got 11971 bytes\n// Field [textfield]: value: 'testing! :-)'\n// File [filefield] Finished\n// Done parsing form!\n```\n\n* Save all incoming files to disk:\n\n```javascript\nconst http = require('node:http');\nconst path = require('node:path');\nconst os = require('node:os');\nconst fs = require('node:fs');\n\nconst Busboy = require('busboy');\n\nhttp.createServer(function(req, res) {\n  if (req.method === 'POST') {\n    const busboy = new Busboy({ headers: req.headers });\n    busboy.on('file', function(fieldname, file, filename, encoding, mimetype) {\n      var saveTo = path.join(os.tmpdir(), path.basename(fieldname));\n      file.pipe(fs.createWriteStream(saveTo));\n    });\n    busboy.on('finish', function() {\n      res.writeHead(200, { 'Connection': 'close' });\n      res.end(\"That's all folks!\");\n    });\n    return req.pipe(busboy);\n  }\n  res.writeHead(404);\n  res.end();\n}).listen(8000, function() {\n  console.log('Listening for requests');\n});\n```\n\n* Parsing (urlencoded) with default options:\n\n```javascript\nconst http = require('node:http');\nconst { inspect } = require('node:util');\n\nconst Busboy = require('busboy');\n\nhttp.createServer(function(req, res) {\n  if (req.method === 'POST') {\n    const busboy = new Busboy({ headers: req.headers });\n    busboy.on('file', function(fieldname, file, filename, encoding, mimetype) {\n      console.log('File [' + fieldname + ']: filename: ' + filename);\n      file.on('data', function(data) {\n        console.log('File [' + fieldname + '] got ' + data.length + ' bytes');\n      });\n      file.on('end', function() {\n        console.log('File [' + fieldname + '] Finished');\n      });\n    });\n    busboy.on('field', function(fieldname, val, fieldnameTruncated, valTruncated) {\n      console.log('Field [' + fieldname + ']: value: ' + inspect(val));\n    });\n    busboy.on('finish', function() {\n      console.log('Done parsing form!');\n      res.writeHead(303, { Connection: 'close', Location: '/' });\n      res.end();\n    });\n    req.pipe(busboy);\n  } else if (req.method === 'GET') {\n    res.writeHead(200, { Connection: 'close' });\n    res.end('<html><head></head><body>\\\n               <form method=\"POST\">\\\n                <input type=\"text\" name=\"textfield\"><br />\\\n                <select name=\"selectfield\">\\\n                  <option value=\"1\">1</option>\\\n                  <option value=\"10\">10</option>\\\n                  <option value=\"100\">100</option>\\\n                  <option value=\"9001\">9001</option>\\\n                </select><br />\\\n                <input type=\"checkbox\" name=\"checkfield\">Node.js rules!<br />\\\n                <input type=\"submit\">\\\n              </form>\\\n            </body></html>');\n  }\n}).listen(8000, function() {\n  console.log('Listening for requests');\n});\n\n// Example output:\n//\n// Listening for requests\n// Field [textfield]: value: 'testing! :-)'\n// Field [selectfield]: value: '9001'\n// Field [checkfield]: value: 'on'\n// Done parsing form!\n```\n\n\nAPI\n===\n\n_Busboy_ is a _Writable_ stream\n\nBusboy (special) events\n-----------------------\n\n* **file**(< _string_ >fieldname, < _ReadableStream_ >stream, < _string_ >filename, < _string_ >transferEncoding, < _string_ >mimeType) - Emitted for each new file form field found. `transferEncoding` contains the 'Content-Transfer-Encoding' value for the file stream. `mimeType` contains the 'Content-Type' value for the file stream.\n    * Note: if you listen for this event, you should always handle the `stream` no matter if you care about the file contents or not (e.g. you can simply just do `stream.resume();` if you want to discard the contents), otherwise the 'finish' event will never fire on the Busboy instance. However, if you don't care about **any** incoming files, you can simply not listen for the 'file' event at all and any/all files will be automatically and safely discarded (these discarded files do still count towards `files` and `parts` limits).\n    * If a configured file size limit was reached, `stream` will both have a boolean property `truncated` (best checked at the end of the stream) and emit a 'limit' event to notify you when this happens.\n    * The property `bytesRead` informs about the number of bytes that have been read so far.\n\n* **field**(< _string_ >fieldname, < _string_ >value, < _boolean_ >fieldnameTruncated, < _boolean_ >valueTruncated, < _string_ >transferEncoding, < _string_ >mimeType) - Emitted for each new non-file field found.\n\n* **partsLimit**() - Emitted when specified `parts` limit has been reached. No more 'file' or 'field' events will be emitted.\n\n* **filesLimit**() - Emitted when specified `files` limit has been reached. No more 'file' events will be emitted.\n\n* **fieldsLimit**() - Emitted when specified `fields` limit has been reached. No more 'field' events will be emitted.\n\n\nBusboy methods\n--------------\n\n* **(constructor)**(< _object_ >config) - Creates and returns a new Busboy instance.\n\n    * The constructor takes the following valid `config` settings:\n\n        * **headers** - _object_ - These are the HTTP headers of the incoming request, which are used by individual parsers.\n\n        * **autoDestroy** - _boolean_ - Whether this stream should automatically call .destroy() on itself after ending. (Default: false).\n\n        * **highWaterMark** - _integer_ - highWaterMark to use for this Busboy instance (Default: WritableStream default).\n\n        * **fileHwm** - _integer_ - highWaterMark to use for file streams (Default: ReadableStream default).\n\n        * **defCharset** - _string_ - Default character set to use when one isn't defined (Default: 'utf8').\n\n        * **preservePath** - _boolean_ - If paths in the multipart 'filename' field shall be preserved. (Default: false).\n\n        * **isPartAFile** - __function__ - Use this function to override the default file detection functionality. It has following parameters:\n\n            * fieldName - __string__ The name of the field.\n\n            * contentType - __string__ The content-type of the part, e.g. `text/plain`, `image/jpeg`, `application/octet-stream`\n\n            * fileName - __string__ The name of a file supplied by the part.\n\n          (Default: `(fieldName, contentType, fileName) => (contentType === 'application/octet-stream' || fileName !== undefined)`)\n\n        * **limits** - _object_ - Various limits on incoming data. Valid properties are:\n\n            * **fieldNameSize** - _integer_ - Max field name size (in bytes) (Default: 100 bytes).\n\n            * **fieldSize** - _integer_ - Max field value size (in bytes) (Default: 1 MiB, which is 1024 x 1024 bytes).\n\n            * **fields** - _integer_ - Max number of non-file fields (Default: Infinity).\n\n            * **fileSize** - _integer_ - For multipart forms, the max file size (in bytes) (Default: Infinity).\n\n            * **files** - _integer_ - For multipart forms, the max number of file fields (Default: Infinity).\n\n            * **parts** - _integer_ - For multipart forms, the max number of parts (fields + files) (Default: Infinity).\n\n            * **headerPairs** - _integer_ - For multipart forms, the max number of header key=>value pairs to parse **Default:** 2000\n\n            * **headerSize** - _integer_ - For multipart forms, the max size of a multipart header **Default:** 81920.\n\n    * The constructor can throw errors:\n\n        * **Busboy expected an options-Object.** - Busboy expected an Object as first parameters.\n\n        * **Busboy expected an options-Object with headers-attribute.** - The first parameter is lacking of a headers-attribute.\n\n        * **Limit $limit is not a valid number** - Busboy expected the desired limit to be of type number. Busboy throws this Error to prevent a potential security issue by falling silently back to the Busboy-defaults. Potential source for this Error can be the direct use of environment variables without transforming them to the type number. \n\n        * **Unsupported Content-Type.** - The `Content-Type` isn't one Busboy can parse.\n\n        * **Missing Content-Type-header.** - The provided headers don't include `Content-Type` at all.\n","_attachments":{},"homepage":"https://github.com/fastify/busboy#readme","bugs":{"url":"https://github.com/fastify/busboy/issues"},"license":"MIT"}