Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

form-data

Package Overview
Dependencies
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

form-data - npm Package Compare versions

Comparing version 0.0.0 to 0.0.2

.npmignore

20

package.json
{
"author": "Felix Geisendörfer <felix@debuggable.com> (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",
"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/form-data.git"
"url": "git://github.com/felixge/node-form-data.git"
},

@@ -14,4 +14,12 @@ "main": "./lib/form_data",

},
"dependencies": {},
"devDependencies": {}
}
"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"
}
}
# form-data
A module to create readable `"application/x-www-form-urlencoded"` streams. Can be used to submit forms and file uploads to other web applications.
A module to create readable `"multipart/form-data"` streams. Can be used to
submit forms and file uploads to other web applications.

@@ -16,3 +17,3 @@ The API of this module is inspired by the

In this example we are constructor a form with 3 fields that contain a string,
In this example we are constructing a form with 3 fields that contain a string,
a buffer and a file stream.

@@ -40,3 +41,3 @@

path: '/upload',
headers: {'Content-Type': 'application/x-www-form-urlencoded'}
headers: form.getHeaders()
});

@@ -46,3 +47,3 @@

request.on('response, function(res) {
request.on('response', function(res) {
console.log(res.statusCode);

@@ -52,2 +53,10 @@ });

Or if you would prefer the `'Content-Length'` header to be set for you:
``` javascript
form.submit('example.org/upload', function(err, res) {
console.log(res.statusCode);
});
```
[xhr2-fd]: http://dev.w3.org/2006/webapi/XMLHttpRequest-2/Overview.html#the-formdata-interface
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc