{"_id":"formstream","_rev":"3370102","name":"formstream","description":"A multipart/form-data encoded stream, helper for file upload.","dist-tags":{"latest":"1.5.1"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"time":{"modified":"2024-08-19T09:22:13.000Z","created":"2012-10-11T10:41:37.161Z","1.5.1":"2024-06-07T05:23:07.066Z","1.5.0":"2024-06-06T07:44:18.777Z","1.4.0":"2024-05-14T16:42:13.287Z","1.3.1":"2023-07-28T04:21:55.621Z","1.3.0":"2023-07-27T14:22:37.605Z","1.2.0":"2023-03-17T02:54:18.122Z","1.1.1":"2021-05-06T02:02:29.300Z","1.1.0":"2016-12-19T06:09:33.790Z","1.0.0":"2014-11-04T03:25:38.696Z","0.0.8":"2014-01-17T01:41:14.985Z","0.0.7":"2013-07-25T14:38:11.584Z","0.0.6":"2013-07-15T02:18:57.861Z","0.0.5":"2012-11-06T14:53:27.924Z","0.0.4":"2012-11-06T14:05:15.215Z","0.0.3":"2012-11-05T16:39:17.318Z","0.0.2":"2012-10-11T13:04:10.919Z","0.0.1":"2012-10-11T10:41:37.161Z"},"users":{"jestersimpps":true,"wfcookie":true,"zixinliango":true,"fotooo":true,"onbing":true,"temasm":true},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"},"repository":{"type":"git","url":"git://github.com/node-modules/formstream.git"},"versions":{"1.5.1":{"name":"formstream","version":"1.5.1","description":"A multipart/form-data encoded stream, helper for file upload.","main":"lib/formstream.js","types":"types/formstream.d.ts","scripts":{"test":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run tsd && npm run cov && NODE_DEBUG=formstream npm run cov","lint":"jshint .","tsd":"tsd","contributor":"git-contributor"},"repository":{"type":"git","url":"git://github.com/node-modules/formstream.git"},"keywords":["form","stream","multipart","form-data","upload","postfile","request"],"dependencies":{"destroy":"^1.0.4","mime":"^2.5.2","node-hex":"^1.0.1","pause-stream":"~0.0.11"},"devDependencies":{"@types/node":"^20.4.3","connect-multiparty":"1","egg-bin":"^5.6.1","express":"^4.16.4","git-contributor":"^2.1.5","jshint":"^2.13.6","pedding":"1","should":"4","tsd":"^0.28.1","urllib":"2"},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"},"license":"MIT","_id":"formstream@1.5.1","gitHead":"38b26233bdd16abff6bfe654c5037f89408aff31","bugs":{"url":"https://github.com/node-modules/formstream/issues"},"homepage":"https://github.com/node-modules/formstream#readme","_nodeVersion":"18.20.3","_npmVersion":"10.7.0","dist":{"shasum":"b25f8121aa434cc82e8b36cdd765338b7b8df4de","size":6561,"noattachment":false,"key":"/formstream/-/formstream-1.5.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/formstream/download/formstream-1.5.1.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/formstream_1.5.1_1717737786896_0.865734769984037"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-06-07T05:23:07.066Z","publish_time":1717737787066,"_source_registry_name":"default","_cnpm_publish_time":1717737787066},"1.5.0":{"name":"formstream","version":"1.5.0","description":"A multipart/form-data encoded stream, helper for file upload.","main":"lib/formstream.js","types":"types/formstream.d.ts","scripts":{"test":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run tsd && npm run cov && NODE_DEBUG=formstream npm run cov","lint":"jshint .","tsd":"tsd","contributor":"git-contributor"},"repository":{"type":"git","url":"git://github.com/node-modules/formstream.git"},"keywords":["form","stream","multipart","form-data","upload","postfile","request"],"dependencies":{"destroy":"^1.0.4","mime":"^2.5.2","node-hex":"^1.0.1","pause-stream":"~0.0.11"},"devDependencies":{"@types/node":"^20.4.3","connect-multiparty":"1","egg-bin":"^5.6.1","express":"^4.16.4","git-contributor":"^2.1.5","jshint":"^2.13.6","pedding":"1","should":"4","tsd":"^0.28.1","urllib":"2"},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"},"license":"MIT","_id":"formstream@1.5.0","gitHead":"3b1c6b3e8de2bf6ebc38dd3b02b90cbce845ec19","bugs":{"url":"https://github.com/node-modules/formstream/issues"},"homepage":"https://github.com/node-modules/formstream#readme","_nodeVersion":"18.20.3","_npmVersion":"10.7.0","dist":{"shasum":"c9f4c58fc2859af0b554096251b365ee50b288c6","size":6537,"noattachment":false,"key":"/formstream/-/formstream-1.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/formstream/download/formstream-1.5.0.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/formstream_1.5.0_1717659858530_0.9941100524086715"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-06-06T07:44:18.777Z","publish_time":1717659858777,"_source_registry_name":"default","_cnpm_publish_time":1717659858777},"1.4.0":{"name":"formstream","version":"1.4.0","description":"A multipart/form-data encoded stream, helper for file upload.","main":"lib/formstream.js","types":"types/formstream.d.ts","scripts":{"test":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run tsd && npm run cov","lint":"jshint .","tsd":"tsd","contributor":"git-contributor"},"repository":{"type":"git","url":"git://github.com/node-modules/formstream.git"},"keywords":["form","stream","multipart","form-data","upload","postfile","request"],"dependencies":{"destroy":"^1.0.4","mime":"^2.5.2","pause-stream":"~0.0.11"},"devDependencies":{"@types/node":"^20.4.3","connect-multiparty":"1","egg-bin":"^5.6.1","express":"^4.16.4","git-contributor":"^2.1.5","jshint":"^2.13.6","pedding":"1","should":"4","tsd":"^0.28.1","urllib":"2"},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"},"license":"MIT","_id":"formstream@1.4.0","gitHead":"350c6b9407084c0bd934757b54afe2807136a14d","bugs":{"url":"https://github.com/node-modules/formstream/issues"},"homepage":"https://github.com/node-modules/formstream#readme","_nodeVersion":"18.20.2","_npmVersion":"10.5.0","dist":{"shasum":"747dc5ae72f56a846e040c4cea6bcbd2ebc6eac0","size":5512,"noattachment":false,"key":"/formstream/-/formstream-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/formstream/download/formstream-1.4.0.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/formstream_1.4.0_1715704933142_0.4782635841538885"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-05-14T16:42:13.287Z","publish_time":1715704933287,"_source_registry_name":"default","_cnpm_publish_time":1715704933287},"1.3.1":{"name":"formstream","version":"1.3.1","description":"A multipart/form-data encoded stream, helper for file upload.","main":"lib/formstream.js","types":"types/formstream.d.ts","scripts":{"test":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run tsd && npm run cov","lint":"jshint .","tsd":"tsd"},"repository":{"type":"git","url":"git://github.com/node-modules/formstream.git"},"keywords":["form","stream","multipart","form-data","upload","postfile","request"],"dependencies":{"destroy":"^1.0.4","mime":"^2.5.2","pause-stream":"~0.0.11"},"devDependencies":{"@types/node":"^20.4.3","connect-multiparty":"1","egg-bin":"^5.6.1","express":"^4.16.4","jshint":"^2.13.6","pedding":"1","should":"4","tsd":"^0.28.1","urllib":"2"},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"},"license":"MIT","contributors":[{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"},{"name":"xingrz","email":"chenxingyu92@gmail.com","url":"https://github.com/xingrz"}],"gitHead":"d314b0e271f7972e903b0b66585ab759a220df45","bugs":{"url":"https://github.com/node-modules/formstream/issues"},"homepage":"https://github.com/node-modules/formstream#readme","_id":"formstream@1.3.1","_nodeVersion":"18.17.0","_npmVersion":"9.6.7","dist":{"shasum":"6c6f53c1c09f0ffc43231022b355b1d5feda3016","size":5114,"noattachment":false,"key":"/formstream/-/formstream-1.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/formstream/download/formstream-1.3.1.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/formstream_1.3.1_1690518115472_0.3437981954989904"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-28T04:21:55.621Z","publish_time":1690518115621,"_source_registry_name":"default","_cnpm_publish_time":1690518115621},"1.3.0":{"name":"formstream","version":"1.3.0","description":"A multipart/form-data encoded stream, helper for file upload.","main":"lib/formstream.js","types":"types/formstream.d.ts","scripts":{"test":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run tsd && npm run cov","lint":"jshint .","tsd":"tsd"},"repository":{"type":"git","url":"git://github.com/node-modules/formstream.git"},"keywords":["form","stream","multipart","form-data","upload","postfile","request"],"dependencies":{"destroy":"^1.0.4","mime":"^2.5.2","pause-stream":"~0.0.11"},"devDependencies":{"@types/node":"^20.4.3","connect-multiparty":"1","egg-bin":"^5.6.1","express":"^4.16.4","jshint":"^2.13.6","pedding":"1","should":"4","tsd":"^0.28.1","urllib":"2"},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"},"license":"MIT","contributors":[{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"},{"name":"xingrz","email":"chenxingyu92@gmail.com","url":"https://github.com/xingrz"}],"gitHead":"0b7d1e7aba94b68d5423fffaae6d2d1587d79dec","bugs":{"url":"https://github.com/node-modules/formstream/issues"},"homepage":"https://github.com/node-modules/formstream#readme","_id":"formstream@1.3.0","_nodeVersion":"18.17.0","_npmVersion":"9.6.7","dist":{"shasum":"2d5b890cc84125c1f63c6896258e08b244ae7998","size":5098,"noattachment":false,"key":"/formstream/-/formstream-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/formstream/download/formstream-1.3.0.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/formstream_1.3.0_1690467757426_0.0039083786509983565"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-27T14:22:37.605Z","publish_time":1690467757605,"_source_registry_name":"default","_cnpm_publish_time":1690467757605},"1.2.0":{"name":"formstream","version":"1.2.0","description":"A multipart/form-data encoded stream, helper for file upload.","main":"lib/formstream.js","scripts":{"test":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov","lint":"jshint ."},"repository":{"type":"git","url":"git://github.com/node-modules/formstream.git"},"keywords":["form","stream","multipart","form-data","upload","postfile","request"],"dependencies":{"destroy":"^1.0.4","mime":"^2.5.2","pause-stream":"~0.0.11"},"devDependencies":{"connect-multiparty":"1","egg-bin":"^5.6.1","express":"^4.16.4","jshint":"^2.13.6","pedding":"1","should":"4","urllib":"2"},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"},"license":"MIT","contributors":[{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"},{"name":"xingrz","email":"chenxingyu92@gmail.com","url":"https://github.com/xingrz"}],"gitHead":"296caea016448ccfa1e0fd6f0e8299005dcae5cb","bugs":{"url":"https://github.com/node-modules/formstream/issues"},"homepage":"https://github.com/node-modules/formstream#readme","_id":"formstream@1.2.0","_nodeVersion":"18.15.0","_npmVersion":"6.14.18","dist":{"shasum":"6948dfa0d1c64bffe93029abf30326fe7504dc41","size":5561,"noattachment":false,"key":"/formstream/-/formstream-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/formstream/download/formstream-1.2.0.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/formstream_1.2.0_1679021657990_0.1623936338407097"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-17T02:54:18.122Z","publish_time":1679021658122,"_cnpm_publish_time":1679021658122},"1.1.1":{"name":"formstream","version":"1.1.1","description":"A multipart/form-data encoded stream, helper for file upload.","main":"lib/formstream.js","scripts":{"test":"mocha -R spec -t 5000 -r should test/*.test.js","test-cov":"istanbul cover node_modules/.bin/_mocha -- -t 5000 -r should test/*.test.js","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- -t 5000 -r should test/*.test.js","jshint":"jshint .","autod":"autod -w --prefix '^'"},"repository":{"type":"git","url":"git://github.com/node-modules/formstream.git"},"keywords":["form","stream","multipart","form-data","upload","postfile","request"],"dependencies":{"destroy":"^1.0.4","mime":"^2.5.2","pause-stream":"~0.0.11"},"devDependencies":{"autod":"*","connect-multiparty":"1","express":"^4.16.4","istanbul":"*","mocha":"3","pedding":"1","should":"4","urllib":"2"},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://fengmk2.com"},"license":"MIT","contributors":[{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"},{"name":"xingrz","email":"chenxingyu92@gmail.com","url":"https://github.com/xingrz"}],"gitHead":"2d5ed81e95b4fde270b5db2720fff0e19effd2dc","bugs":{"url":"https://github.com/node-modules/formstream/issues"},"homepage":"https://github.com/node-modules/formstream#readme","_id":"formstream@1.1.1","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"shasum":"17259d2440c35ca9736db9f45fb3ba3f8669c750","size":5477,"noattachment":false,"key":"/formstream/-/formstream-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/formstream/download/formstream-1.1.1.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/formstream_1.1.1_1620266549178_0.7590599209550601"},"_hasShrinkwrap":false,"publish_time":1620266549300,"_cnpm_publish_time":1620266549300},"1.1.0":{"name":"formstream","version":"1.1.0","description":"A multipart/form-data encoded stream, helper for file upload.","main":"lib/formstream.js","files":["lib"],"scripts":{"test":"mocha -R spec -t 5000 -r should test/*.test.js","test-cov":"istanbul cover node_modules/.bin/_mocha -- -t 5000 -r should test/*.test.js","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- -t 5000 -r should test/*.test.js","jshint":"jshint .","autod":"autod -w --prefix '^'"},"repository":{"type":"git","url":"git://github.com/node-modules/formstream.git"},"keywords":["form","stream","multipart","form-data","upload","postfile","request"],"dependencies":{"destroy":"^1.0.4","mime":"^1.3.4","pause-stream":"~0.0.11"},"devDependencies":{"autod":"*","connect-multiparty":"1","express":"4","istanbul":"*","mocha":"*","pedding":"1","should":"4","urllib":"2"},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"http://fengmk2.github.com"},"license":"MIT","contributors":[{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"},{"name":"xingrz","email":"chenxingyu92@gmail.com","url":"https://github.com/xingrz"}],"gitHead":"aab4ac77ca623089ad4fca3c70154723848d7cb3","bugs":{"url":"https://github.com/node-modules/formstream/issues"},"homepage":"https://github.com/node-modules/formstream#readme","_id":"formstream@1.1.0","_shasum":"51f3970f26136eb0ad44304de4cebb50207b4479","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"51f3970f26136eb0ad44304de4cebb50207b4479","size":5277,"noattachment":false,"key":"/formstream/-/formstream-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/formstream/download/formstream-1.1.0.tgz"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/formstream-1.1.0.tgz_1482127773093_0.3919559372588992"},"directories":{},"publish_time":1482127773790,"_cnpm_publish_time":1482127773790,"_hasShrinkwrap":false},"1.0.0":{"name":"formstream","version":"1.0.0","description":"A multipart/form-data encoded stream, helper for file upload.","main":"index.js","scripts":{"test":"mocha --check-leaks -R spec -t 5000 -r should test/*.test.js","test-cov":"node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- --check-leaks -t 5000 -r should test/*.test.js","test-travis":"node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- --check-leaks -t 5000 -r should test/*.test.js","jshint":"jshint .","autod":"autod -w --prefix '~'","cnpm":"npm install --registry=https://registry.npm.taobao.org","contributors":"contributors -f plain -o AUTHORS"},"repository":{"type":"git","url":"git://github.com/node-modules/formstream.git"},"keywords":["form","stream","multipart","form-data","upload","postfile","request"],"dependencies":{"buffer-concat":"~0.0.1","destroy":"~1.0.3","mime":"~1.2.11","pause-stream":"~0.0.11"},"devDependencies":{"autod":"*","blanket":"*","connect-multiparty":"~1.2.5","contributors":"*","express":"~4.10.1","istanbul-harmony":"*","mocha":"*","pedding":"~1.0.0","should":"~4.1.0","urllib":"~2.0.2"},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"http://fengmk2.github.com"},"license":"MIT","contributors":[{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"},{"name":"xingrz","email":"chenxingyu92@gmail.com","url":"https://github.com/xingrz"}],"gitHead":"849fa3f1ae5a44dea2558d649feefc56c7ee73f4","bugs":{"url":"https://github.com/node-modules/formstream/issues"},"homepage":"https://github.com/node-modules/formstream","_id":"formstream@1.0.0","_shasum":"c085840644083056dcc0a4c2df863ee6aed4b6a8","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"c085840644083056dcc0a4c2df863ee6aed4b6a8","size":7990,"noattachment":false,"key":"/formstream/-/formstream-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/formstream/download/formstream-1.0.0.tgz"},"directories":{},"publish_time":1415071538696,"_cnpm_publish_time":1415071538696,"_hasShrinkwrap":false},"0.0.8":{"name":"formstream","version":"0.0.8","description":"A multipart/form-data encoded stream, helper for file upload.","main":"index.js","scripts":{"test":"make test-all"},"config":{"blanket":{"pattern":"formstream/lib"},"cov":{"threshold":100}},"repository":{"type":"git","url":"git://github.com/fengmk2/formstream.git"},"keywords":["form","stream","multipart","form-data","upload","postfile","request"],"dependencies":{"buffer-concat":"0.0.1","dethroy":"1.0.0","mime":"1.2.11","pause-stream":"0.0.11"},"devDependencies":{"autod":"*","blanket":"*","connect":"2.12.0","connect-multiparty":"1.0.1","contributors":"*","cov":"*","coveralls":"*","mocha":"*","mocha-lcov-reporter":"*","pedding":"0.0.3","should":"2.1.1","urllib":"0.5.5"},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"http://fengmk2.github.com"},"license":"MIT","contributors":[{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"},{"name":"XiNGRZ","email":"chenxingyu92@gmail.com","url":"https://github.com/xingrz"}],"readmeFilename":"README.md","bugs":{"url":"https://github.com/fengmk2/formstream/issues"},"homepage":"https://github.com/fengmk2/formstream","_id":"formstream@0.0.8","dist":{"shasum":"e4427ad96eda66e5128b7fb428ebd28b78c50d65","size":5550,"noattachment":false,"key":"/formstream/-/formstream-0.0.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/formstream/download/formstream-0.0.8.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"directories":{},"publish_time":1389922874985,"_cnpm_publish_time":1389922874985,"_hasShrinkwrap":false},"0.0.7":{"name":"formstream","version":"0.0.7","description":"A multipart/form-data encoded stream, helper for file upload.","main":"index.js","scripts":{"test":"make test-all"},"repository":{"type":"git","url":"git://github.com/fengmk2/formstream.git"},"keywords":["form","stream","multipart","form-data","upload","postfile","request"],"dependencies":{"mime":"1.2.9","buffer-concat":"0.0.1","pause-stream":">=0.0.10"},"devDependencies":{"connect":"*","should":"*","pedding":"*","blanket":"*","travis-cov":"*","coveralls":"*","mocha-lcov-reporter":"*","mocha":"*"},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"http://fengmk2.github.com"},"license":"MIT","readmeFilename":"README.md","bugs":{"url":"https://github.com/fengmk2/formstream/issues"},"_id":"formstream@0.0.7","dist":{"shasum":"981d0036743596c54820ee3dfb44baca18349788","size":5178,"noattachment":false,"key":"/formstream/-/formstream-0.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/formstream/download/formstream-0.0.7.tgz"},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"directories":{},"publish_time":1374763091584,"_cnpm_publish_time":1374763091584,"_hasShrinkwrap":false},"0.0.6":{"name":"formstream","version":"0.0.6","description":"A multipart/form-data encoded stream, helper for file upload.","main":"index.js","scripts":{"test":"make test-all"},"repository":{"type":"git","url":"git://github.com/fengmk2/formstream.git"},"keywords":["form","stream","multipart","form-data","upload","postfile","request"],"dependencies":{"mime":"1.2.9","buffer-concat":"0.0.1","pause-stream":">=0.0.10"},"devDependencies":{"connect":"*","should":"*","pedding":"*","blanket":"*","travis-cov":"*","coveralls":"*","mocha-lcov-reporter":"*","mocha":"*"},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"http://fengmk2.github.com"},"license":"MIT","readmeFilename":"README.md","bugs":{"url":"https://github.com/fengmk2/formstream/issues"},"_id":"formstream@0.0.6","dist":{"shasum":"4475600d4fe40379202aed21039ef810d9ea1488","size":5162,"noattachment":false,"key":"/formstream/-/formstream-0.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/formstream/download/formstream-0.0.6.tgz"},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"directories":{},"publish_time":1373854737861,"_cnpm_publish_time":1373854737861,"_hasShrinkwrap":false},"0.0.5":{"name":"formstream","version":"0.0.5","description":"A multipart/form-data encoded stream, helper for file upload.","main":"index.js","directories":{"example":"example","test":"test"},"scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/fengmk2/formstream.git"},"keywords":["form","stream","multipart","form-data","upload","postfile","request"],"dependencies":{"mime":"1.2.7","buffer-concat":"0.0.1","pause-stream":"0.0.6"},"devDependencies":{"connect":"*","should":"*","pedding":"*","jscover":"*","mocha":"*"},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"http://fengmk2.github.com"},"license":"MIT","readmeFilename":"README.md","_id":"formstream@0.0.5","dist":{"shasum":"4a197e3240b5873c21fdcb4425ea3c68e3eba95b","size":4090,"noattachment":false,"key":"/formstream/-/formstream-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/formstream/download/formstream-0.0.5.tgz"},"_npmVersion":"1.1.65","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"publish_time":1352213607924,"_cnpm_publish_time":1352213607924,"_hasShrinkwrap":false},"0.0.4":{"name":"formstream","version":"0.0.4","description":"A multipart/form-data encoded stream, helper for file upload.","main":"index.js","directories":{"example":"example","test":"test"},"scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/fengmk2/formstream.git"},"keywords":["form","stream","multipart","form-data","upload","postfile","request"],"dependencies":{"mime":"1.2.7","buffer-concat":"0.0.1","pause-stream":"0.0.6"},"devDependencies":{"connect":"*","should":"*","pedding":"*","jscover":"*","mocha":"*"},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"http://fengmk2.github.com"},"license":"MIT","readmeFilename":"README.md","_id":"formstream@0.0.4","dist":{"shasum":"5df3f7d51cb7f292541bff5296220bcdc57f9a7e","size":4057,"noattachment":false,"key":"/formstream/-/formstream-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/formstream/download/formstream-0.0.4.tgz"},"_npmVersion":"1.1.65","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"publish_time":1352210715215,"_cnpm_publish_time":1352210715215,"_hasShrinkwrap":false},"0.0.3":{"name":"formstream","version":"0.0.3","description":"A multipart/form-data encoded stream, helper for file upload.","main":"index.js","directories":{"example":"example","test":"test"},"scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/fengmk2/formstream.git"},"keywords":["form","stream","multipart","form-data","upload","postfile","request"],"dependencies":{"mime":"1.2.7","buffer-concat":"0.0.1","pause-stream":"0.0.6"},"devDependencies":{"connect":"*","should":"*","pedding":"*","jscover":"*","mocha":"*"},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"http://fengmk2.github.com"},"license":"MIT","readmeFilename":"README.md","_id":"formstream@0.0.3","dist":{"shasum":"2d1e79ea7a42a6ed9bbd78fe5e94737f85b69329","size":3724,"noattachment":false,"key":"/formstream/-/formstream-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/formstream/download/formstream-0.0.3.tgz"},"_npmVersion":"1.1.65","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"publish_time":1352133557318,"_cnpm_publish_time":1352133557318,"_hasShrinkwrap":false},"0.0.2":{"name":"formstream","version":"0.0.2","description":"A multipart/form-data encoded stream, helper for file upload.","main":"index.js","directories":{"example":"example","test":"test"},"scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/fengmk2/formstream.git"},"keywords":["form","stream","multipart","form-data","upload","postfile","request"],"devDependencies":{"connect":"2.6.0","should":"*","mocha":"*"},"dependencies":{"mime":"1.2.7","buffer-concat":"0.0.1","pause-stream":"0.0.6"},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"http://fengmk2.github.com"},"license":"MIT","_id":"formstream@0.0.2","dist":{"shasum":"c15a9afbd6278290bc55d93e6fa13a6a5305939a","size":3327,"noattachment":false,"key":"/formstream/-/formstream-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/formstream/download/formstream-0.0.2.tgz"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"publish_time":1349960650919,"_cnpm_publish_time":1349960650919,"_hasShrinkwrap":false},"0.0.1":{"name":"formstream","version":"0.0.1","description":"A multipart/form-data encoded stream, helper for file upload.","main":"index.js","directories":{"example":"example","test":"test"},"scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/fengmk2/formstream.git"},"keywords":["form","stream","multipart","form-data","upload","postfile","request"],"devDependencies":{"connect":"2.6.0","should":"*","mocha":"*"},"dependencies":{"mime":"1.2.7","pause-stream":"0.0.6"},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"http://fengmk2.github.com"},"license":"MIT","_id":"formstream@0.0.1","dist":{"shasum":"f301709bf7b0803055ebaee34344b4cd5ab3e2c4","size":3608,"noattachment":false,"key":"/formstream/-/formstream-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/formstream/download/formstream-0.0.1.tgz"},"_npmVersion":"1.1.61","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"maintainers":[{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"publish_time":1349952097161,"_cnpm_publish_time":1349952097161,"_hasShrinkwrap":false}},"readme":"# formstream\n\n[![NPM version][npm-image]][npm-url]\n[![CI](https://github.com/node-modules/formstream/actions/workflows/ci.yml/badge.svg)](https://github.com/node-modules/formstream/actions/workflows/ci.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/formstream.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/formstream\n[codecov-image]: https://codecov.io/github/node-modules/formstream/coverage.svg?branch=master\n[codecov-url]: https://codecov.io/github/node-modules/formstream?branch=master\n[download-image]: https://img.shields.io/npm/dm/formstream.svg?style=flat-square\n[download-url]: https://npmjs.org/package/formstream\n\nA [multipart/form-data](http://tools.ietf.org/html/rfc2388) encoded stream, helper for file upload.\n\n## Install\n\n```bash\nnpm install formstream\n```\n\n## Quick Start\n\n```js\nvar formstream = require('formstream');\nvar http = require('http');\n\nvar form = formstream();\n\n// form.file('file', filepath, filename);\nform.file('file', './logo.png', 'upload-logo.png');\n\n// other form fields\nform.field('foo', 'fengmk2').field('love', 'aerdeng');\n\n// even send file content buffer directly\n// form.buffer(name, buffer, filename, mimeType)\nform.buffer('file2', new Buffer('This is file2 content.'), 'foo.txt');\n\nvar options = {\n  method: 'POST',\n  host: 'upload.cnodejs.net',\n  path: '/store',\n  headers: form.headers()\n};\nvar req = http.request(options, function (res) {\n  console.log('Status: %s', res.statusCode);\n  res.on('data', function (data) {\n    console.log(data.toString());\n  });\n});\n\nform.pipe(req);\n```\n\n### Chaining\n\n```js\nvar fs = require('fs');\nvar formstream = require('formstream');\n\nvar filepath = './logo.png';\nfs.stat(filepath, function (err, stat) {\n  formstream()\n    .field('status', 'share picture')\n    .field('access_token', 'your access token')\n    .file('pic', filepath, 'logo.png', stat.size)\n    .pipe(process.stdout); // your request stream\n});\n```\n\n### Set min chunk buffer size\n\nSome web servers have a limit on the number of chunks, and you can set `minChunkSize` to ensure the size of chunk sent to the server.\n\n```js\nvar fs = require('fs');\nvar FormStream = require('formstream');\n\nvar filepath = './big-file.zip';\nfs.stat(filepath, function (err, stat) {\n  new FormStream({\n    // send >= 2MB chunk buffer size to the server\n    minChunkSize: 1024 * 1024 * 2,\n  }).field('status', 'share file')\n    .field('access_token', 'your access token')\n    .file('file', filepath, 'big-file.zip', stat.size)\n    .pipe(process.stdout); // your request stream\n});\n```\n\n## API Doc\n\n### formstream([options])\n\nCreate a form instance.\n\n#### Arguments\n\n- **options.minChunkSize** Number - min chunk size to emit data event\n\n#### Returns\n\nForm - form instance\n\n### FormStream#field(name, value)\n\nAdd a normal field to the form.\n\n#### Arguments\n\n- **name** String - Name of field\n- **value** String - Value of field\n\n#### Returns\n\nForm - form instance\n\n### FormStream#file(name, filepath[, filename][, filesize])\n\nAdd a local file to be uploaded to the form.\n\n#### Arguments\n\n- **name** String - Name of file field\n- **filepath** String - Local path of the file to be uploaded\n- ***filename*** String - Optional. Name of the file (will be the base name of `filepath` if empty)\n- ***filesize*** Number - Optional. Size of the file (will not generate `Content-Length` header if not specified)\n\n#### Returns\n\nForm - form instance\n\n### FormStream#buffer(name, buffer, filename[, contentType])\n\nAdd a buffer as a file to upload.\n\n#### Arguments\n\n- **name** String - Name of field\n- **buffer** Buffer - The buffer to be uploaded\n- **filename** String - The file name that tells the remote server\n- ***contentType*** String - Optional. Content-Type (aka. MIME Type) of content (will be infered with `filename` if empty)\n\n#### Returns\n\nForm - form instance\n\n### FormStream#stream(name, stream, filename[, contentType][, size])\n\nAdd a readable stream as a file to upload. Event 'error' will be emitted if an error occured.\n\n#### Arguments\n\n- **name** String - Name of field\n- **stream** [stream.Readable](http://nodejs.org/api/stream.html#stream_class_stream_readable) - A readable stream to be piped\n- **filename** String - The file name that tells the remote server\n- ***contentType*** String - Optional. Content-Type (aka. MIME Type) of content (will be infered with `filename` if empty)\n- ***size*** Number - Optional. Size of the stream (will not generate `Content-Length` header if not specified)\n\n#### Returns\n\nForm - form instance\n\n### FormStream#headers([headers])\n\nGet headers for the request.\n\n#### Arguments\n\n- **headers** Object - Additional headers\n\n#### Example\n\n```js\nvar headers = form.headers({\n  'Authorization': 'Bearer kei2akc92jmznvnkeh09sknzdk',\n  'Accept': 'application/vnd.github.v3.full+json'\n});\n```\n\n#### Returns\n\nObject - Headers to be sent.\n\n### Event 'error'\n\nEmitted if there was an error receiving data.\n\n### Event 'data'\n\nThe 'data' event emits when a Buffer was used.\n\nSee [Node.js Documentation](http://nodejs.org/api/stream.html#stream_event_data) for more.\n\n### Event 'end'\n\nEmitted when the stream has received no more 'data' events will happen.\n\nSee [Node.js Documentation](http://nodejs.org/api/stream.html#stream_event_end) for more.\n\n## License\n\n[MIT](LICENSE)\n\n<!-- GITCONTRIBUTOR_START -->\n\n## Contributors\n\n|[<img src=\"https://avatars.githubusercontent.com/u/156269?v=4\" width=\"100px;\"/><br/><sub><b>fengmk2</b></sub>](https://github.com/fengmk2)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/288288?v=4\" width=\"100px;\"/><br/><sub><b>xingrz</b></sub>](https://github.com/xingrz)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/32174276?v=4\" width=\"100px;\"/><br/><sub><b>semantic-release-bot</b></sub>](https://github.com/semantic-release-bot)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/13151189?v=4\" width=\"100px;\"/><br/><sub><b>fjc0k</b></sub>](https://github.com/fjc0k)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/18096247?v=4\" width=\"100px;\"/><br/><sub><b>mrspeiser</b></sub>](https://github.com/mrspeiser)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/985607?v=4\" width=\"100px;\"/><br/><sub><b>dead-horse</b></sub>](https://github.com/dead-horse)<br/>|\n| :---: | :---: | :---: | :---: | :---: | :---: |\n[<img src=\"https://avatars.githubusercontent.com/u/7326406?v=4\" width=\"100px;\"/><br/><sub><b>shaozj</b></sub>](https://github.com/shaozj)<br/>\n\nThis project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Wed May 15 2024 00:34:12 GMT+0800`.\n\n<!-- GITCONTRIBUTOR_END -->\n","_attachments":{},"homepage":"https://github.com/node-modules/formstream#readme","bugs":{"url":"https://github.com/node-modules/formstream/issues"},"license":"MIT"}