%PDF- %PDF-
Direktori : /home/waritko/.npm/registry.npmjs.org/form-data/ |
Current File : //home/waritko/.npm/registry.npmjs.org/form-data/.cache.json |
{"_id":"form-data","_rev":"50-c649808a716bf46a318022fddffc88e0","name":"form-data","description":"A module to create readable \"multipart/form-data\" streams. Can be used to submit forms and file uploads to other web applications.","dist-tags":{"latest":"0.2.0"},"versions":{"0.0.0":{"author":{"name":"Felix Geisendörfer","email":"felix@debuggable.com","url":"http://debuggable.com/"},"name":"form-data","description":"A module to create readable `\"application/x-www-form-urlencoded\"` streams. Can be used to submit forms and file uploads to other web applications.","version":"0.0.0","repository":{"type":"git","url":"git://github.com/felixge/form-data.git"},"main":"./lib/form_data","engines":{"node":"*"},"dependencies":{},"devDependencies":{},"_id":"form-data@0.0.0","_engineSupported":true,"_npmVersion":"1.0.3","_nodeVersion":"v0.4.8-pre","_defaultsLoaded":true,"dist":{"shasum":"c18c31c227bbb33b053217e8fec0c2255e06a1e8","tarball":"http://registry.npmjs.org/form-data/-/form-data-0.0.0.tgz"},"scripts":{},"directories":{}},"0.0.2":{"author":{"name":"Felix Geisendörfer","email":"felix@debuggable.com","url":"http://debuggable.com/"},"name":"form-data","description":"A module to create readable `\"multipart/form-data\"` streams. Can be used to submit forms and file uploads to other web applications.","version":"0.0.2","repository":{"type":"git","url":"git://github.com/felixge/node-form-data.git"},"main":"./lib/form_data","engines":{"node":"*"},"dependencies":{"combined-stream":"0.0.3","mime":"1.2.2","async":"0.1.9"},"devDependencies":{"fake":"0.2.1","far":"0.0.1","formidable":"1.0.2"},"_npmUser":{"name":"idralyuk","email":"igor@buran.us"},"_id":"form-data@0.0.2","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.15","_defaultsLoaded":true,"dist":{"shasum":"6d1470b4355088034bb28c0a5417845facf10068","tarball":"http://registry.npmjs.org/form-data/-/form-data-0.0.2.tgz"},"maintainers":[{"name":"felixge","email":"felix@debuggable.com"},{"name":"idralyuk","email":"igor@buran.us"}],"directories":{}},"0.0.3":{"author":{"name":"Felix Geisendörfer","email":"felix@debuggable.com","url":"http://debuggable.com/"},"name":"form-data","description":"A module to create readable `\"multipart/form-data\"` streams. Can be used to submit forms and file uploads to other web applications.","version":"0.0.3","repository":{"type":"git","url":"git://github.com/felixge/node-form-data.git"},"main":"./lib/form_data","engines":{"node":"*"},"dependencies":{"combined-stream":"0.0.3","mime":"1.2.2","async":"0.1.9"},"devDependencies":{"fake":"0.2.1","far":"0.0.1","formidable":"1.0.2","request":"~2.9.203"},"_id":"form-data@0.0.3","dist":{"shasum":"6eea17b45790b42d779a1d581d1b3600fe0c7c0d","tarball":"http://registry.npmjs.org/form-data/-/form-data-0.0.3.tgz"},"maintainers":[{"name":"felixge","email":"felix@debuggable.com"},{"name":"idralyuk","email":"igor@buran.us"},{"name":"alexindigo","email":"iam@alexindigo.com"}],"directories":{}},"0.0.4":{"author":{"name":"Felix Geisendörfer","email":"felix@debuggable.com","url":"http://debuggable.com/"},"name":"form-data","description":"A module to create readable `\"multipart/form-data\"` streams. Can be used to submit forms and file uploads to other web applications.","version":"0.0.4","repository":{"type":"git","url":"git://github.com/felixge/node-form-data.git"},"main":"./lib/form_data","engines":{"node":"*"},"dependencies":{"combined-stream":"0.0.3","mime":"~1.2.2","async":"~0.1.9"},"devDependencies":{"fake":"0.2.1","far":"0.0.1","formidable":"1.0.2","request":"~2.9.203"},"_id":"form-data@0.0.4","dist":{"shasum":"564115f4a26826903510ec6a94488b4cb11ea317","tarball":"http://registry.npmjs.org/form-data/-/form-data-0.0.4.tgz"},"_npmVersion":"1.1.51","_npmUser":{"name":"alexindigo","email":"iam@alexindigo.com"},"maintainers":[{"name":"felixge","email":"felix@debuggable.com"},{"name":"idralyuk","email":"igor@buran.us"},{"name":"alexindigo","email":"iam@alexindigo.com"}],"directories":{}},"0.0.5":{"author":{"name":"Felix Geisendörfer","email":"felix@debuggable.com","url":"http://debuggable.com/"},"name":"form-data","description":"A module to create readable `\"multipart/form-data\"` streams. Can be used to submit forms and file uploads to other web applications.","version":"0.0.5","repository":{"type":"git","url":"git://github.com/felixge/node-form-data.git"},"main":"./lib/form_data","engines":{"node":"*"},"dependencies":{"combined-stream":"0.0.3","mime":"~1.2.2","async":"~0.1.9"},"devDependencies":{"fake":"0.2.1","far":"0.0.1","formidable":"1.0.2","request":"~2.9.203"},"_id":"form-data@0.0.5","dist":{"shasum":"2fe21ccdb8c09cf52d60f78d67f2dd242f2a6102","tarball":"http://registry.npmjs.org/form-data/-/form-data-0.0.5.tgz"},"_npmVersion":"1.1.65","_npmUser":{"name":"alexindigo","email":"iam@alexindigo.com"},"maintainers":[{"name":"felixge","email":"felix@debuggable.com"},{"name":"idralyuk","email":"igor@buran.us"},{"name":"alexindigo","email":"iam@alexindigo.com"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"}],"directories":{}},"0.0.6":{"author":{"name":"Felix Geisendörfer","email":"felix@debuggable.com","url":"http://debuggable.com/"},"name":"form-data","description":"A module to create readable `\"multipart/form-data\"` streams. Can be used to submit forms and file uploads to other web applications.","version":"0.0.6","repository":{"type":"git","url":"git://github.com/felixge/node-form-data.git"},"main":"./lib/form_data","engines":{"node":"*"},"dependencies":{"combined-stream":"0.0.3","mime":"~1.2.2","async":"~0.1.9"},"devDependencies":{"fake":"0.2.1","far":"0.0.1","formidable":"1.0.2","request":"~2.9.203"},"_id":"form-data@0.0.6","dist":{"shasum":"77ba50dea04bc6eb9bc7bd2d119e64b1f8070a41","tarball":"http://registry.npmjs.org/form-data/-/form-data-0.0.6.tgz"},"_npmVersion":"1.1.65","_npmUser":{"name":"alexindigo","email":"iam@alexindigo.com"},"maintainers":[{"name":"felixge","email":"felix@debuggable.com"},{"name":"idralyuk","email":"igor@buran.us"},{"name":"alexindigo","email":"iam@alexindigo.com"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"}],"directories":{}},"0.0.7":{"author":{"name":"Felix Geisendörfer","email":"felix@debuggable.com","url":"http://debuggable.com/"},"name":"form-data","description":"A module to create readable `\"multipart/form-data\"` streams. Can be used to submit forms and file uploads to other web applications.","version":"0.0.7","repository":{"type":"git","url":"git://github.com/felixge/node-form-data.git"},"main":"./lib/form_data","engines":{"node":"*"},"dependencies":{"combined-stream":"~0.0.4","mime":"~1.2.2","async":"~0.1.9"},"devDependencies":{"fake":"0.2.1","far":"0.0.1","formidable":"1.0.2","request":"~2.9.203"},"_id":"form-data@0.0.7","dist":{"shasum":"7211182a26a266ce39710dc8bc4a81b7040859be","tarball":"http://registry.npmjs.org/form-data/-/form-data-0.0.7.tgz"},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"celer","email":"dtyree77@gmail.com"},"maintainers":[{"name":"felixge","email":"felix@debuggable.com"},{"name":"idralyuk","email":"igor@buran.us"},{"name":"alexindigo","email":"iam@alexindigo.com"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"},{"name":"celer","email":"dtyree77@gmail.com"}],"directories":{}},"0.0.8":{"author":{"name":"Felix Geisendörfer","email":"felix@debuggable.com","url":"http://debuggable.com/"},"name":"form-data","description":"A module to create readable `\"multipart/form-data\"` streams. Can be used to submit forms and file uploads to other web applications.","version":"0.0.8","repository":{"type":"git","url":"git://github.com/felixge/node-form-data.git"},"main":"./lib/form_data","scripts":{"test":"node test/run.js"},"engines":{"node":">= 0.6"},"dependencies":{"combined-stream":"~0.0.4","mime":"~1.2.2","async":"~0.2.7"},"devDependencies":{"fake":"~0.2.1","far":"~0.0.7","formidable":"~1.0.13","request":"~2.16.6"},"_id":"form-data@0.0.8","dist":{"shasum":"0890cd1005c5ccecc0b9d24a88052c92442d0db5","tarball":"http://registry.npmjs.org/form-data/-/form-data-0.0.8.tgz"},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"alexindigo","email":"iam@alexindigo.com"},"maintainers":[{"name":"felixge","email":"felix@debuggable.com"},{"name":"idralyuk","email":"igor@buran.us"},{"name":"alexindigo","email":"iam@alexindigo.com"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"},{"name":"celer","email":"dtyree77@gmail.com"}],"directories":{}},"0.0.9":{"author":{"name":"Felix Geisendörfer","email":"felix@debuggable.com","url":"http://debuggable.com/"},"name":"form-data","description":"A module to create readable `\"multipart/form-data\"` streams. Can be used to submit forms and file uploads to other web applications.","version":"0.0.9","repository":{"type":"git","url":"git://github.com/felixge/node-form-data.git"},"main":"./lib/form_data","scripts":{"test":"node test/run.js"},"engines":{"node":">= 0.6"},"dependencies":{"combined-stream":"~0.0.4","mime":"~1.2.2","async":"~0.2.7"},"devDependencies":{"fake":"~0.2.1","far":"~0.0.7","formidable":"~1.0.13","request":"~2.16.6"},"_id":"form-data@0.0.9","dist":{"shasum":"f229b4e39bed528c75836045a23bf8f8ff4db16d","tarball":"http://registry.npmjs.org/form-data/-/form-data-0.0.9.tgz"},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"alexindigo","email":"iam@alexindigo.com"},"maintainers":[{"name":"felixge","email":"felix@debuggable.com"},{"name":"idralyuk","email":"igor@buran.us"},{"name":"alexindigo","email":"iam@alexindigo.com"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"},{"name":"celer","email":"dtyree77@gmail.com"}],"directories":{}},"0.0.10":{"author":{"name":"Felix Geisendörfer","email":"felix@debuggable.com","url":"http://debuggable.com/"},"name":"form-data","description":"A module to create readable `\"multipart/form-data\"` streams. Can be used to submit forms and file uploads to other web applications.","version":"0.0.10","repository":{"type":"git","url":"git://github.com/felixge/node-form-data.git"},"main":"./lib/form_data","scripts":{"test":"node test/run.js"},"engines":{"node":">= 0.6"},"dependencies":{"combined-stream":"~0.0.4","mime":"~1.2.2","async":"~0.2.7"},"devDependencies":{"fake":"~0.2.1","far":"~0.0.7","formidable":"~1.0.13","request":"~2.16.6"},"_id":"form-data@0.0.10","dist":{"shasum":"db345a5378d86aeeb1ed5d553b869ac192d2f5ed","tarball":"http://registry.npmjs.org/form-data/-/form-data-0.0.10.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"alexindigo","email":"iam@alexindigo.com"},"maintainers":[{"name":"felixge","email":"felix@debuggable.com"},{"name":"idralyuk","email":"igor@buran.us"},{"name":"alexindigo","email":"iam@alexindigo.com"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"},{"name":"celer","email":"dtyree77@gmail.com"}],"directories":{}},"0.1.0":{"author":{"name":"Felix Geisendörfer","email":"felix@debuggable.com","url":"http://debuggable.com/"},"name":"form-data","description":"A module to create readable \"multipart/form-data\" streams. Can be used to submit forms and file uploads to other web applications.","version":"0.1.0","repository":{"type":"git","url":"git://github.com/felixge/node-form-data.git"},"main":"./lib/form_data","scripts":{"test":"node test/run.js"},"engines":{"node":">= 0.6"},"dependencies":{"combined-stream":"~0.0.4","mime":"~1.2.9","async":"~0.2.9"},"devDependencies":{"fake":"~0.2.2","far":"~0.0.7","formidable":"~1.0.14","request":"~2.22.0"},"_id":"form-data@0.1.0","dist":{"shasum":"d36b59baf9b292bb2e5034d7a6079b2bd1e9df83","tarball":"http://registry.npmjs.org/form-data/-/form-data-0.1.0.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"alexindigo","email":"iam@alexindigo.com"},"maintainers":[{"name":"felixge","email":"felix@debuggable.com"},{"name":"idralyuk","email":"igor@buran.us"},{"name":"alexindigo","email":"iam@alexindigo.com"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"},{"name":"celer","email":"dtyree77@gmail.com"}],"directories":{}},"0.1.1":{"author":{"name":"Felix Geisendörfer","email":"felix@debuggable.com","url":"http://debuggable.com/"},"name":"form-data","description":"A module to create readable \"multipart/form-data\" streams. Can be used to submit forms and file uploads to other web applications.","version":"0.1.1","repository":{"type":"git","url":"git://github.com/felixge/node-form-data.git"},"main":"./lib/form_data","scripts":{"test":"node test/run.js"},"engines":{"node":">= 0.6"},"dependencies":{"combined-stream":"~0.0.4","mime":"~1.2.11","async":"~0.2.9"},"licenses":[{"type":"MIT","url":"https://raw.github.com/felixge/node-form-data/master/License"}],"devDependencies":{"fake":"~0.2.2","far":"~0.0.7","formidable":"~1.0.14","request":"~2.27.0"},"_id":"form-data@0.1.1","dist":{"shasum":"0d5f2805647b45533ba10bc8a59cf17d1efa5f12","tarball":"http://registry.npmjs.org/form-data/-/form-data-0.1.1.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"alexindigo","email":"iam@alexindigo.com"},"maintainers":[{"name":"felixge","email":"felix@debuggable.com"},{"name":"idralyuk","email":"igor@buran.us"},{"name":"alexindigo","email":"iam@alexindigo.com"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"},{"name":"celer","email":"dtyree77@gmail.com"}],"directories":{}},"0.1.2":{"author":{"name":"Felix Geisendörfer","email":"felix@debuggable.com","url":"http://debuggable.com/"},"name":"form-data","description":"A module to create readable \"multipart/form-data\" streams. Can be used to submit forms and file uploads to other web applications.","version":"0.1.2","repository":{"type":"git","url":"git://github.com/felixge/node-form-data.git"},"main":"./lib/form_data","scripts":{"test":"node test/run.js"},"engines":{"node":">= 0.6"},"dependencies":{"combined-stream":"~0.0.4","mime":"~1.2.11","async":"~0.2.9"},"licenses":[{"type":"MIT","url":"https://raw.github.com/felixge/node-form-data/master/License"}],"devDependencies":{"fake":"~0.2.2","far":"~0.0.7","formidable":"~1.0.14","request":"~2.27.0"},"bugs":{"url":"https://github.com/felixge/node-form-data/issues"},"_id":"form-data@0.1.2","dist":{"shasum":"1143c21357911a78dd7913b189b4bab5d5d57445","tarball":"http://registry.npmjs.org/form-data/-/form-data-0.1.2.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"alexindigo","email":"iam@alexindigo.com"},"maintainers":[{"name":"felixge","email":"felix@debuggable.com"},{"name":"idralyuk","email":"igor@buran.us"},{"name":"alexindigo","email":"iam@alexindigo.com"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"},{"name":"celer","email":"dtyree77@gmail.com"}],"directories":{}},"0.1.3":{"author":{"name":"Felix Geisendörfer","email":"felix@debuggable.com","url":"http://debuggable.com/"},"name":"form-data","description":"A module to create readable \"multipart/form-data\" streams. Can be used to submit forms and file uploads to other web applications.","version":"0.1.3","repository":{"type":"git","url":"git://github.com/felixge/node-form-data.git"},"main":"./lib/form_data","scripts":{"test":"node test/run.js"},"engines":{"node":">= 0.8"},"dependencies":{"combined-stream":"~0.0.4","mime":"~1.2.11","async":"~0.9.0"},"licenses":[{"type":"MIT","url":"https://raw.github.com/felixge/node-form-data/master/License"}],"devDependencies":{"fake":"~0.2.2","far":"~0.0.7","formidable":"~1.0.14","request":"~2.36.0"},"bugs":{"url":"https://github.com/felixge/node-form-data/issues"},"homepage":"https://github.com/felixge/node-form-data","_id":"form-data@0.1.3","dist":{"shasum":"4ee4346e6eb5362e8344a02075bd8dbd8c7373ea","tarball":"http://registry.npmjs.org/form-data/-/form-data-0.1.3.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"alexindigo","email":"iam@alexindigo.com"},"maintainers":[{"name":"felixge","email":"felix@debuggable.com"},{"name":"idralyuk","email":"igor@buran.us"},{"name":"alexindigo","email":"iam@alexindigo.com"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"},{"name":"celer","email":"dtyree77@gmail.com"}],"directories":{}},"0.1.4":{"author":{"name":"Felix Geisendörfer","email":"felix@debuggable.com","url":"http://debuggable.com/"},"name":"form-data","description":"A module to create readable \"multipart/form-data\" streams. Can be used to submit forms and file uploads to other web applications.","version":"0.1.4","repository":{"type":"git","url":"git://github.com/felixge/node-form-data.git"},"main":"./lib/form_data","scripts":{"test":"node test/run.js"},"engines":{"node":">= 0.8"},"dependencies":{"combined-stream":"~0.0.4","mime":"~1.2.11","async":"~0.9.0"},"licenses":[{"type":"MIT","url":"https://raw.github.com/felixge/node-form-data/master/License"}],"devDependencies":{"fake":"~0.2.2","far":"~0.0.7","formidable":"~1.0.14","request":"~2.36.0"},"gitHead":"5f5f4809ea685f32658809fa0f13d7eface0e45a","bugs":{"url":"https://github.com/felixge/node-form-data/issues"},"homepage":"https://github.com/felixge/node-form-data","_id":"form-data@0.1.4","_shasum":"91abd788aba9702b1aabfa8bc01031a2ac9e3b12","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"alexindigo","email":"iam@alexindigo.com"},"maintainers":[{"name":"felixge","email":"felix@debuggable.com"},{"name":"idralyuk","email":"igor@buran.us"},{"name":"alexindigo","email":"iam@alexindigo.com"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"},{"name":"celer","email":"dtyree77@gmail.com"}],"dist":{"shasum":"91abd788aba9702b1aabfa8bc01031a2ac9e3b12","tarball":"http://registry.npmjs.org/form-data/-/form-data-0.1.4.tgz"},"directories":{}},"0.2.0":{"author":{"name":"Felix Geisendörfer","email":"felix@debuggable.com","url":"http://debuggable.com/"},"name":"form-data","description":"A module to create readable \"multipart/form-data\" streams. Can be used to submit forms and file uploads to other web applications.","version":"0.2.0","repository":{"type":"git","url":"git://github.com/felixge/node-form-data.git"},"main":"./lib/form_data","scripts":{"test":"node test/run.js"},"engines":{"node":">= 0.8"},"dependencies":{"async":"~0.9.0","combined-stream":"~0.0.4","mime-types":"~2.0.3"},"licenses":[{"type":"MIT","url":"https://raw.github.com/felixge/node-form-data/master/License"}],"devDependencies":{"fake":"~0.2.2","far":"~0.0.7","formidable":"~1.0.14","request":"~2.36.0"},"gitHead":"dfc1a2aef40b97807e2ffe477da06cb2c37e259f","bugs":{"url":"https://github.com/felixge/node-form-data/issues"},"homepage":"https://github.com/felixge/node-form-data","_id":"form-data@0.2.0","_shasum":"26f8bc26da6440e299cbdcfb69035c4f77a6e466","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"alexindigo","email":"iam@alexindigo.com"},"maintainers":[{"name":"felixge","email":"felix@debuggable.com"},{"name":"idralyuk","email":"igor@buran.us"},{"name":"alexindigo","email":"iam@alexindigo.com"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"},{"name":"celer","email":"dtyree77@gmail.com"}],"dist":{"shasum":"26f8bc26da6440e299cbdcfb69035c4f77a6e466","tarball":"http://registry.npmjs.org/form-data/-/form-data-0.2.0.tgz"},"directories":{}}},"maintainers":[{"name":"felixge","email":"felix@debuggable.com"},{"name":"idralyuk","email":"igor@buran.us"},{"name":"alexindigo","email":"iam@alexindigo.com"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"},{"name":"celer","email":"dtyree77@gmail.com"}],"time":{"modified":"2015-01-10T04:37:22.303Z","created":"2011-05-16T14:58:21.870Z","0.0.0":"2011-05-16T14:58:22.532Z","0.0.2":"2012-07-02T21:59:37.447Z","0.0.3":"2012-08-10T03:05:05.412Z","0.0.4":"2012-09-06T16:47:43.385Z","0.0.5":"2012-12-05T07:06:20.011Z","0.0.6":"2013-01-08T08:04:51.296Z","0.0.7":"2013-02-10T02:53:05.643Z","0.0.8":"2013-04-21T23:32:42.861Z","0.0.9":"2013-04-29T17:09:12.258Z","0.0.10":"2013-05-09T05:35:21.282Z","0.1.0":"2013-07-08T18:46:13.834Z","0.1.1":"2013-08-22T04:22:58.445Z","0.1.2":"2013-10-03T04:06:55.129Z","0.1.3":"2014-06-02T07:48:24.579Z","0.1.4":"2014-06-24T06:35:44.934Z","0.2.0":"2014-12-06T21:14:10.402Z"},"author":{"name":"Felix Geisendörfer","email":"felix@debuggable.com","url":"http://debuggable.com/"},"repository":{"type":"git","url":"git://github.com/felixge/node-form-data.git"},"users":{"alexindigo":true,"tunnckocore":true,"xgenvn":true,"hellboy81":true,"adamlu":true,"mpinteractiv":true,"bam5":true,"haiyang5210":true,"haeck":true},"readme":"# Form-Data [](https://travis-ci.org/felixge/node-form-data) [](https://gemnasium.com/felixge/node-form-data)\n\nA module to create readable ```\"multipart/form-data\"``` streams. Can be used to submit forms and file uploads to other web applications.\n\nThe API of this module is inspired by the [XMLHttpRequest-2 FormData Interface][xhr2-fd].\n\n[xhr2-fd]: http://dev.w3.org/2006/webapi/XMLHttpRequest-2/Overview.html#the-formdata-interface\n[streams2-thing]: http://nodejs.org/api/stream.html#stream_compatibility_with_older_node_versions\n\n## Install\n\n```\nnpm install form-data\n```\n\n## Usage\n\nIn this example we are constructing a form with 3 fields that contain a string,\na buffer and a file stream.\n\n``` javascript\nvar FormData = require('form-data');\nvar fs = require('fs');\n\nvar form = new FormData();\nform.append('my_field', 'my value');\nform.append('my_buffer', new Buffer(10));\nform.append('my_file', fs.createReadStream('/foo/bar.jpg'));\n```\n\nAlso you can use http-response stream:\n\n``` javascript\nvar FormData = require('form-data');\nvar http = require('http');\n\nvar form = new FormData();\n\nhttp.request('http://nodejs.org/images/logo.png', function(response) {\n form.append('my_field', 'my value');\n form.append('my_buffer', new Buffer(10));\n form.append('my_logo', response);\n});\n```\n\nOr @mikeal's request stream:\n\n``` javascript\nvar FormData = require('form-data');\nvar request = require('request');\n\nvar form = new FormData();\n\nform.append('my_field', 'my value');\nform.append('my_buffer', new Buffer(10));\nform.append('my_logo', request('http://nodejs.org/images/logo.png'));\n```\n\nIn order to submit this form to a web application, call ```submit(url, [callback])``` method:\n\n``` javascript\nform.submit('http://example.org/', function(err, res) {\n // res – response object (http.IncomingMessage) //\n res.resume(); // for node-0.10.x\n});\n\n```\n\nFor more advanced request manipulations ```submit()``` method returns ```http.ClientRequest``` object, or you can choose from one of the alternative submission methods.\n\n### Alternative submission methods\n\nYou can use node's http client interface:\n\n``` javascript\nvar http = require('http');\n\nvar request = http.request({\n method: 'post',\n host: 'example.org',\n path: '/upload',\n headers: form.getHeaders()\n});\n\nform.pipe(request);\n\nrequest.on('response', function(res) {\n console.log(res.statusCode);\n});\n```\n\nOr if you would prefer the `'Content-Length'` header to be set for you:\n\n``` javascript\nform.submit('example.org/upload', function(err, res) {\n console.log(res.statusCode);\n});\n```\n\nTo use custom headers and pre-known length in parts:\n\n``` javascript\nvar CRLF = '\\r\\n';\nvar form = new FormData();\n\nvar options = {\n header: CRLF + '--' + form.getBoundary() + CRLF + 'X-Custom-Header: 123' + CRLF + CRLF,\n knownLength: 1\n};\n\nform.append('my_buffer', buffer, options);\n\nform.submit('http://example.com/', function(err, res) {\n if (err) throw err;\n console.log('Done');\n});\n```\n\nForm-Data can recognize and fetch all the required information from common types of streams (```fs.readStream```, ```http.response``` and ```mikeal's request```), for some other types of streams you'd need to provide \"file\"-related information manually:\n\n``` javascript\nsomeModule.stream(function(err, stdout, stderr) {\n if (err) throw err;\n\n var form = new FormData();\n\n form.append('file', stdout, {\n filename: 'unicycle.jpg',\n contentType: 'image/jpg',\n knownLength: 19806\n });\n\n form.submit('http://example.com/', function(err, res) {\n if (err) throw err;\n console.log('Done');\n });\n});\n```\n\nFor edge cases, like POST request to URL with query string or to pass HTTP auth credentials, object can be passed to `form.submit()` as first parameter:\n\n``` javascript\nform.submit({\n host: 'example.com',\n path: '/probably.php?extra=params',\n auth: 'username:password'\n}, function(err, res) {\n console.log(res.statusCode);\n});\n```\n\nIn case you need to also send custom HTTP headers with the POST request, you can use the `headers` key in first parameter of `form.submit()`:\n\n``` javascript\nform.submit({\n host: 'example.com',\n path: '/surelynot.php',\n headers: {'x-test-header': 'test-header-value'}\n}, function(err, res) {\n console.log(res.statusCode);\n});\n```\n\n## Notes\n\n- ```getLengthSync()``` method DOESN'T calculate length for streams, use ```knownLength``` options as workaround.\n- If it feels like FormData hangs after submit and you're on ```node-0.10```, please check [Compatibility with Older Node Versions][streams2-thing]\n\n## TODO\n\n- Add new streams (0.10) support and try really hard not to break it for 0.8.x.\n\n## License\n\nForm-Data is licensed under the MIT license.\n","homepage":"https://github.com/felixge/node-form-data","bugs":{"url":"https://github.com/felixge/node-form-data/issues"},"readmeFilename":"Readme.md","_attachments":{},"_etag":"\"259MMMBAFJS272WK0O4BFA9M5\""}