Comparing version 0.0.0 to 0.0.2
{ | ||
"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 |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
13
360
59
0
32940
3
3
8
5
+ Addedasync@0.1.9
+ Addedcombined-stream@0.0.3
+ Addedmime@1.2.2
+ Addedasync@0.1.9(transitive)
+ Addedcombined-stream@0.0.3(transitive)
+ Addeddelayed-stream@0.0.5(transitive)
+ Addedmime@1.2.2(transitive)