vulcan 0.2.5 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -80
- data/lib/vulcan/cli.rb +12 -33
- data/lib/vulcan/version.rb +1 -1
- data/server/bin/make +3 -1
- data/server/lib/spawner.js +4 -9
- data/server/node_modules/connect-form/node_modules/formidable/Readme.md +2 -13
- data/server/node_modules/connect-form/node_modules/formidable/lib/incoming_form.js +7 -19
- data/server/node_modules/connect-form/node_modules/formidable/lib/multipart_parser.js +1 -12
- data/server/node_modules/connect-form/node_modules/formidable/package.json +1 -1
- data/server/node_modules/connect-form/node_modules/formidable/test/fixture/http/special-chars-in-filename/osx-chrome-13.http +10 -0
- data/server/node_modules/connect-form/node_modules/formidable/test/fixture/http/special-chars-in-filename/xp-chrome-12.http +9 -0
- data/server/node_modules/connect-form/node_modules/formidable/test/legacy/simple/test-multipart-parser.js +1 -1
- data/server/node_modules/cradle/lib/cradle.js +1 -0
- data/server/node_modules/cradle/node_modules/vows/LICENSE +20 -0
- data/server/node_modules/cradle/node_modules/vows/Makefile +7 -0
- data/server/node_modules/cradle/node_modules/vows/README.md +39 -0
- data/server/node_modules/cradle/node_modules/vows/bin/vows +515 -0
- data/server/node_modules/cradle/node_modules/vows/lib/assert/error.js +27 -0
- data/server/node_modules/cradle/node_modules/vows/lib/assert/macros.js +215 -0
- data/server/node_modules/cradle/node_modules/vows/lib/assert/utils.js +77 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows.js +193 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/console.js +131 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/context.js +55 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/coverage/file.js +29 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/coverage/fragments/coverage-foot.html +2 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/coverage/fragments/coverage-head.html +61 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/coverage/report-html.js +54 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/coverage/report-json.js +54 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/coverage/report-plain.js +38 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/extras.js +28 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/reporters/dot-matrix.js +67 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/reporters/json.js +16 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/reporters/silent.js +8 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/reporters/spec.js +44 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/reporters/watch.js +39 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/reporters/xunit.js +90 -0
- data/server/node_modules/cradle/node_modules/vows/lib/vows/suite.js +319 -0
- data/server/node_modules/cradle/node_modules/vows/node_modules/eyes/LICENSE +20 -0
- data/server/node_modules/cradle/node_modules/vows/node_modules/eyes/Makefile +4 -0
- data/server/node_modules/cradle/node_modules/vows/node_modules/eyes/README.md +72 -0
- data/server/node_modules/cradle/node_modules/vows/node_modules/eyes/lib/eyes.js +233 -0
- data/server/node_modules/cradle/node_modules/vows/node_modules/eyes/package.json +14 -0
- data/server/node_modules/cradle/node_modules/vows/node_modules/eyes/test/eyes-test.js +55 -0
- data/server/node_modules/cradle/node_modules/vows/package.json +14 -0
- data/server/node_modules/cradle/node_modules/vows/test/assert-test.js +135 -0
- data/server/node_modules/cradle/node_modules/vows/test/fixtures/isolate/failing.js +18 -0
- data/server/node_modules/cradle/node_modules/vows/test/fixtures/isolate/log.js +18 -0
- data/server/node_modules/cradle/node_modules/vows/test/fixtures/isolate/passing.js +17 -0
- data/server/node_modules/cradle/node_modules/vows/test/fixtures/isolate/stderr.js +18 -0
- data/server/node_modules/cradle/node_modules/vows/test/isolate-test.js +140 -0
- data/server/node_modules/cradle/node_modules/vows/test/testInherit.js +133 -0
- data/server/node_modules/cradle/node_modules/vows/test/vows-error-test.js +51 -0
- data/server/node_modules/cradle/node_modules/vows/test/vows-test.js +374 -0
- data/server/node_modules/cradle/package.json +3 -3
- data/server/node_modules/cradle/test/cache-test.js +7 -6
- data/server/node_modules/cradle/test/cradle-test.js +5 -4
- data/server/node_modules/cradle/test/response-test.js +6 -5
- data/server/node_modules/express/History.md +1 -53
- data/server/node_modules/express/Makefile +9 -3
- data/server/node_modules/express/Readme.md +1 -3
- data/server/node_modules/express/bin/express +66 -65
- data/server/node_modules/express/lib/express.js +1 -1
- data/server/node_modules/express/lib/request.js +9 -23
- data/server/node_modules/express/lib/response.js +2 -3
- data/server/node_modules/express/lib/utils.js +0 -13
- data/server/node_modules/express/lib/view.js +16 -19
- data/server/node_modules/express/lib/view/view.js +1 -2
- data/server/node_modules/express/node_modules/connect/lib/connect.js +1 -1
- data/server/node_modules/express/node_modules/connect/lib/http.js +0 -2
- data/server/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js +31 -135
- data/server/node_modules/express/node_modules/connect/lib/middleware/limit.js +1 -5
- data/server/node_modules/express/node_modules/connect/lib/middleware/session.js +2 -2
- data/server/node_modules/express/node_modules/connect/lib/middleware/static.js +21 -26
- data/server/node_modules/express/node_modules/connect/lib/middleware/staticCache.js +38 -91
- data/server/node_modules/express/node_modules/connect/lib/middleware/vhost.js +1 -1
- data/server/node_modules/express/node_modules/connect/lib/utils.js +4 -11
- data/server/node_modules/express/node_modules/connect/package.json +6 -7
- data/server/node_modules/express/node_modules/connect/test.js +31 -44
- data/server/node_modules/express/node_modules/mime/index.js +1 -0
- data/server/node_modules/express/node_modules/mime/mime.js +3 -3
- data/server/node_modules/express/node_modules/mime/{types/mime.types → mime.types} +0 -0
- data/server/node_modules/express/node_modules/mime/{types/node.types → node.types} +0 -17
- data/server/node_modules/express/node_modules/mime/package.json +10 -21
- data/server/node_modules/express/node_modules/mime/test.js +3 -2
- data/server/node_modules/express/node_modules/qs/History.md +0 -11
- data/server/node_modules/express/node_modules/qs/Makefile +3 -1
- data/server/node_modules/express/node_modules/qs/Readme.md +4 -2
- data/server/node_modules/express/node_modules/qs/lib/querystring.js +74 -100
- data/server/node_modules/express/node_modules/qs/package.json +2 -9
- data/server/node_modules/express/node_modules/qs/support/expresso/History.md +128 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/Makefile +53 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/Readme.md +61 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/bin/expresso +856 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/docs/api.html +1080 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/docs/index.html +377 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/docs/index.md +290 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/docs/layout/foot.html +3 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/docs/layout/head.html +42 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/lib/bar.js +4 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/lib/foo.js +16 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/package.json +12 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/test/assert.test.js +91 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/test/async.test.js +12 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/test/bar.test.js +13 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/test/foo.test.js +14 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/test/http.test.js +146 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/test/serial/async.test.js +39 -0
- data/server/node_modules/express/node_modules/qs/support/expresso/test/serial/http.test.js +48 -0
- data/server/node_modules/express/node_modules/qs/support/should/History.md +22 -0
- data/server/node_modules/express/node_modules/qs/support/should/Makefile +6 -0
- data/server/node_modules/express/node_modules/qs/support/should/Readme.md +248 -0
- data/server/node_modules/express/node_modules/qs/support/should/examples/runner.js +53 -0
- data/server/node_modules/express/node_modules/qs/support/should/index.js +2 -0
- data/server/node_modules/express/node_modules/qs/support/should/lib/eql.js +91 -0
- data/server/node_modules/express/node_modules/qs/support/should/lib/should.js +548 -0
- data/server/node_modules/express/node_modules/qs/support/should/package.json +8 -0
- data/server/node_modules/express/node_modules/qs/support/should/test/should.test.js +358 -0
- data/server/node_modules/express/node_modules/qs/test/{parse.js → parse.test.js} +2 -1
- data/server/node_modules/express/node_modules/qs/test/{stringify.js → stringify.test.js} +0 -0
- data/server/node_modules/express/package.json +8 -9
- data/server/node_modules/node-uuid/README.md +67 -166
- data/server/node_modules/node-uuid/package.json +3 -5
- data/server/node_modules/node-uuid/{benchmark → test}/benchmark-native.c +0 -0
- data/server/node_modules/node-uuid/test/benchmark.js +27 -0
- data/server/node_modules/node-uuid/test/test.html +0 -3
- data/server/node_modules/node-uuid/test/test.js +57 -214
- data/server/node_modules/node-uuid/uuid.js +56 -225
- data/server/node_modules/restler/README.md +7 -20
- data/server/node_modules/restler/bin/restler +1 -1
- data/server/node_modules/restler/lib/multipartform.js +8 -9
- data/server/node_modules/restler/lib/restler.js +22 -64
- data/server/node_modules/restler/package.json +2 -2
- data/server/node_modules/restler/test/restler.js +2 -22
- data/server/node_modules/restler/test/test_helper.js +1 -20
- data/server/package.json +10 -10
- data/server/web.js +7 -30
- metadata +96 -89
- data/server/node_modules/connect-form/node_modules/formidable/test/fixture/file/plain.txt +0 -1
- data/server/node_modules/connect-form/node_modules/formidable/test/fixture/http/no-filename/generic.http +0 -13
- data/server/node_modules/connect-form/node_modules/formidable/test/fixture/js/no-filename.js +0 -3
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/Makefile +0 -14
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/Readme.md +0 -286
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/TODO +0 -3
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/benchmark/bench-multipart-parser.js +0 -70
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/example/post.js +0 -43
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/example/upload.js +0 -48
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/index.js +0 -1
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/lib/file.js +0 -61
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/lib/incoming_form.js +0 -377
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/lib/index.js +0 -3
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/lib/multipart_parser.js +0 -312
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/lib/querystring_parser.js +0 -25
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/lib/util.js +0 -6
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/package.json +0 -22
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/common.js +0 -19
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/file/funkyfilename.txt +0 -1
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/file/plain.txt +0 -1
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/no-filename/generic.http +0 -13
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/info.md +0 -3
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/osx-chrome-13.http +0 -26
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/osx-firefox-3.6.http +0 -24
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/osx-safari-5.http +0 -23
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/xp-chrome-12.http +0 -24
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/xp-ie-7.http +0 -22
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/xp-ie-8.http +0 -22
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/xp-safari-5.http +0 -22
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/js/no-filename.js +0 -3
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/js/special-chars-in-filename.js +0 -21
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/multi_video.upload +0 -0
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/multipart.js +0 -72
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/integration/test-fixtures.js +0 -89
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/common.js +0 -24
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/integration/test-multipart-parser.js +0 -80
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-file.js +0 -104
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-incoming-form.js +0 -715
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-multipart-parser.js +0 -50
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-querystring-parser.js +0 -45
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/system/test-multi-video-upload.js +0 -72
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/run.js +0 -2
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/unit/test-incoming-form.js +0 -63
- data/server/node_modules/express/node_modules/connect/node_modules/formidable/tool/record.js +0 -47
- data/server/node_modules/express/node_modules/mkdirp/LICENSE +0 -21
- data/server/node_modules/express/node_modules/mkdirp/README.markdown +0 -21
- data/server/node_modules/express/node_modules/mkdirp/examples/pow.js +0 -6
- data/server/node_modules/express/node_modules/mkdirp/examples/pow.js.orig +0 -6
- data/server/node_modules/express/node_modules/mkdirp/examples/pow.js.rej +0 -19
- data/server/node_modules/express/node_modules/mkdirp/index.js +0 -20
- data/server/node_modules/express/node_modules/mkdirp/package.json +0 -23
- data/server/node_modules/express/node_modules/mkdirp/test/mkdirp.js +0 -28
- data/server/node_modules/express/node_modules/mkdirp/test/race.js +0 -41
- data/server/node_modules/express/node_modules/mkdirp/test/rel.js +0 -32
- data/server/node_modules/express/node_modules/qs/test/mocha.opts +0 -2
- data/server/node_modules/express/testing/foo/app.js +0 -35
- data/server/node_modules/express/testing/foo/package.json +0 -9
- data/server/node_modules/express/testing/foo/public/stylesheets/style.css +0 -8
- data/server/node_modules/express/testing/foo/routes/index.js +0 -10
- data/server/node_modules/express/testing/foo/views/index.jade +0 -2
- data/server/node_modules/express/testing/foo/views/layout.jade +0 -6
- data/server/node_modules/express/testing/index.js +0 -43
- data/server/node_modules/express/testing/public/test.txt +0 -2971
- data/server/node_modules/express/testing/views/page.html +0 -1
- data/server/node_modules/express/testing/views/page.jade +0 -3
- data/server/node_modules/express/testing/views/test.md +0 -1
- data/server/node_modules/express/testing/views/user/index.jade +0 -1
- data/server/node_modules/express/testing/views/user/list.jade +0 -1
- data/server/node_modules/node-uuid/benchmark/README.md +0 -53
- data/server/node_modules/node-uuid/benchmark/bench.gnu +0 -174
- data/server/node_modules/node-uuid/benchmark/bench.sh +0 -34
- data/server/node_modules/node-uuid/benchmark/benchmark.js +0 -84
- data/server/node_modules/node-uuid/test/benchmark-native +0 -0
- data/server/node_modules/node-uuid/test/compare_v1.js +0 -63
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vulcan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-02-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: heroku
|
16
|
+
requirement: &70167913439660 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 2.20.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70167913439660
|
14
25
|
- !ruby/object:Gem::Dependency
|
15
26
|
name: multipart-post
|
16
|
-
requirement: &
|
27
|
+
requirement: &70167913438960 !ruby/object:Gem::Requirement
|
17
28
|
none: false
|
18
29
|
requirements:
|
19
30
|
- - ~>
|
@@ -21,10 +32,10 @@ dependencies:
|
|
21
32
|
version: 1.1.3
|
22
33
|
type: :runtime
|
23
34
|
prerelease: false
|
24
|
-
version_requirements: *
|
35
|
+
version_requirements: *70167913438960
|
25
36
|
- !ruby/object:Gem::Dependency
|
26
37
|
name: rest-client
|
27
|
-
requirement: &
|
38
|
+
requirement: &70167913438360 !ruby/object:Gem::Requirement
|
28
39
|
none: false
|
29
40
|
requirements:
|
30
41
|
- - ~>
|
@@ -32,10 +43,10 @@ dependencies:
|
|
32
43
|
version: 1.6.7
|
33
44
|
type: :runtime
|
34
45
|
prerelease: false
|
35
|
-
version_requirements: *
|
46
|
+
version_requirements: *70167913438360
|
36
47
|
- !ruby/object:Gem::Dependency
|
37
48
|
name: thor
|
38
|
-
requirement: &
|
49
|
+
requirement: &70167913437700 !ruby/object:Gem::Requirement
|
39
50
|
none: false
|
40
51
|
requirements:
|
41
52
|
- - ~>
|
@@ -43,7 +54,7 @@ dependencies:
|
|
43
54
|
version: 0.14.6
|
44
55
|
type: :runtime
|
45
56
|
prerelease: false
|
46
|
-
version_requirements: *
|
57
|
+
version_requirements: *70167913437700
|
47
58
|
description: Build software in the cloud
|
48
59
|
email: ddollar@gmail.com
|
49
60
|
executables:
|
@@ -82,8 +93,6 @@ files:
|
|
82
93
|
- server/node_modules/connect-form/node_modules/formidable/test/fast/test-incoming-form.js
|
83
94
|
- ! 'server/node_modules/connect-form/node_modules/formidable/test/fixture/file/:
|
84
95
|
\ ? % * | " < > . ☃ ; '' @ # $ ^ & ( ) - _ = + { } [ ] ` ~.txt'
|
85
|
-
- server/node_modules/connect-form/node_modules/formidable/test/fixture/file/plain.txt
|
86
|
-
- server/node_modules/connect-form/node_modules/formidable/test/fixture/http/no-filename/generic.http
|
87
96
|
- server/node_modules/connect-form/node_modules/formidable/test/fixture/http/special-chars-in-filename/info.md
|
88
97
|
- server/node_modules/connect-form/node_modules/formidable/test/fixture/http/special-chars-in-filename/osx-chrome-13.http
|
89
98
|
- server/node_modules/connect-form/node_modules/formidable/test/fixture/http/special-chars-in-filename/osx-firefox-3.6.http
|
@@ -92,7 +101,6 @@ files:
|
|
92
101
|
- server/node_modules/connect-form/node_modules/formidable/test/fixture/http/special-chars-in-filename/xp-ie-7.http
|
93
102
|
- server/node_modules/connect-form/node_modules/formidable/test/fixture/http/special-chars-in-filename/xp-ie-8.http
|
94
103
|
- server/node_modules/connect-form/node_modules/formidable/test/fixture/http/special-chars-in-filename/xp-safari-5.http
|
95
|
-
- server/node_modules/connect-form/node_modules/formidable/test/fixture/js/no-filename.js
|
96
104
|
- server/node_modules/connect-form/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
|
97
105
|
- server/node_modules/connect-form/node_modules/formidable/test/fixture/multi_video.upload
|
98
106
|
- server/node_modules/connect-form/node_modules/formidable/test/fixture/multipart.js
|
@@ -275,6 +283,46 @@ files:
|
|
275
283
|
- server/node_modules/cradle/node_modules/vargs/LICENSE
|
276
284
|
- server/node_modules/cradle/node_modules/vargs/package.json
|
277
285
|
- server/node_modules/cradle/node_modules/vargs/README.md
|
286
|
+
- server/node_modules/cradle/node_modules/vows/bin/vows
|
287
|
+
- server/node_modules/cradle/node_modules/vows/lib/assert/error.js
|
288
|
+
- server/node_modules/cradle/node_modules/vows/lib/assert/macros.js
|
289
|
+
- server/node_modules/cradle/node_modules/vows/lib/assert/utils.js
|
290
|
+
- server/node_modules/cradle/node_modules/vows/lib/vows/console.js
|
291
|
+
- server/node_modules/cradle/node_modules/vows/lib/vows/context.js
|
292
|
+
- server/node_modules/cradle/node_modules/vows/lib/vows/coverage/file.js
|
293
|
+
- server/node_modules/cradle/node_modules/vows/lib/vows/coverage/fragments/coverage-foot.html
|
294
|
+
- server/node_modules/cradle/node_modules/vows/lib/vows/coverage/fragments/coverage-head.html
|
295
|
+
- server/node_modules/cradle/node_modules/vows/lib/vows/coverage/report-html.js
|
296
|
+
- server/node_modules/cradle/node_modules/vows/lib/vows/coverage/report-json.js
|
297
|
+
- server/node_modules/cradle/node_modules/vows/lib/vows/coverage/report-plain.js
|
298
|
+
- server/node_modules/cradle/node_modules/vows/lib/vows/extras.js
|
299
|
+
- server/node_modules/cradle/node_modules/vows/lib/vows/reporters/dot-matrix.js
|
300
|
+
- server/node_modules/cradle/node_modules/vows/lib/vows/reporters/json.js
|
301
|
+
- server/node_modules/cradle/node_modules/vows/lib/vows/reporters/silent.js
|
302
|
+
- server/node_modules/cradle/node_modules/vows/lib/vows/reporters/spec.js
|
303
|
+
- server/node_modules/cradle/node_modules/vows/lib/vows/reporters/watch.js
|
304
|
+
- server/node_modules/cradle/node_modules/vows/lib/vows/reporters/xunit.js
|
305
|
+
- server/node_modules/cradle/node_modules/vows/lib/vows/suite.js
|
306
|
+
- server/node_modules/cradle/node_modules/vows/lib/vows.js
|
307
|
+
- server/node_modules/cradle/node_modules/vows/LICENSE
|
308
|
+
- server/node_modules/cradle/node_modules/vows/Makefile
|
309
|
+
- server/node_modules/cradle/node_modules/vows/node_modules/eyes/lib/eyes.js
|
310
|
+
- server/node_modules/cradle/node_modules/vows/node_modules/eyes/LICENSE
|
311
|
+
- server/node_modules/cradle/node_modules/vows/node_modules/eyes/Makefile
|
312
|
+
- server/node_modules/cradle/node_modules/vows/node_modules/eyes/package.json
|
313
|
+
- server/node_modules/cradle/node_modules/vows/node_modules/eyes/README.md
|
314
|
+
- server/node_modules/cradle/node_modules/vows/node_modules/eyes/test/eyes-test.js
|
315
|
+
- server/node_modules/cradle/node_modules/vows/package.json
|
316
|
+
- server/node_modules/cradle/node_modules/vows/README.md
|
317
|
+
- server/node_modules/cradle/node_modules/vows/test/assert-test.js
|
318
|
+
- server/node_modules/cradle/node_modules/vows/test/fixtures/isolate/failing.js
|
319
|
+
- server/node_modules/cradle/node_modules/vows/test/fixtures/isolate/log.js
|
320
|
+
- server/node_modules/cradle/node_modules/vows/test/fixtures/isolate/passing.js
|
321
|
+
- server/node_modules/cradle/node_modules/vows/test/fixtures/isolate/stderr.js
|
322
|
+
- server/node_modules/cradle/node_modules/vows/test/isolate-test.js
|
323
|
+
- server/node_modules/cradle/node_modules/vows/test/testInherit.js
|
324
|
+
- server/node_modules/cradle/node_modules/vows/test/vows-error-test.js
|
325
|
+
- server/node_modules/cradle/node_modules/vows/test/vows-test.js
|
278
326
|
- server/node_modules/cradle/package.json
|
279
327
|
- server/node_modules/cradle/README.md
|
280
328
|
- server/node_modules/cradle/test/cache-test.js
|
@@ -415,66 +463,16 @@ files:
|
|
415
463
|
- server/node_modules/express/node_modules/connect/lib/public/style.css
|
416
464
|
- server/node_modules/express/node_modules/connect/lib/utils.js
|
417
465
|
- server/node_modules/express/node_modules/connect/LICENSE
|
418
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/benchmark/bench-multipart-parser.js
|
419
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/example/post.js
|
420
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/example/upload.js
|
421
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/index.js
|
422
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/lib/file.js
|
423
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/lib/incoming_form.js
|
424
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/lib/index.js
|
425
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/lib/multipart_parser.js
|
426
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/lib/querystring_parser.js
|
427
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/lib/util.js
|
428
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/Makefile
|
429
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/package.json
|
430
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/Readme.md
|
431
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/test/common.js
|
432
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/file/funkyfilename.txt
|
433
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/file/plain.txt
|
434
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/no-filename/generic.http
|
435
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/info.md
|
436
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/osx-chrome-13.http
|
437
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/osx-firefox-3.6.http
|
438
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/osx-safari-5.http
|
439
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/xp-chrome-12.http
|
440
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/xp-ie-7.http
|
441
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/xp-ie-8.http
|
442
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/xp-safari-5.http
|
443
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/js/no-filename.js
|
444
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
|
445
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/multi_video.upload
|
446
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/multipart.js
|
447
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/test/integration/test-fixtures.js
|
448
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/common.js
|
449
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/integration/test-multipart-parser.js
|
450
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-file.js
|
451
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-incoming-form.js
|
452
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-multipart-parser.js
|
453
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-querystring-parser.js
|
454
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/system/test-multi-video-upload.js
|
455
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/test/run.js
|
456
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/test/unit/test-incoming-form.js
|
457
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/TODO
|
458
|
-
- server/node_modules/express/node_modules/connect/node_modules/formidable/tool/record.js
|
459
466
|
- server/node_modules/express/node_modules/connect/package.json
|
460
467
|
- server/node_modules/express/node_modules/connect/test.js
|
468
|
+
- server/node_modules/express/node_modules/mime/index.js
|
461
469
|
- server/node_modules/express/node_modules/mime/LICENSE
|
462
470
|
- server/node_modules/express/node_modules/mime/mime.js
|
471
|
+
- server/node_modules/express/node_modules/mime/mime.types
|
472
|
+
- server/node_modules/express/node_modules/mime/node.types
|
463
473
|
- server/node_modules/express/node_modules/mime/package.json
|
464
474
|
- server/node_modules/express/node_modules/mime/README.md
|
465
475
|
- server/node_modules/express/node_modules/mime/test.js
|
466
|
-
- server/node_modules/express/node_modules/mime/types/mime.types
|
467
|
-
- server/node_modules/express/node_modules/mime/types/node.types
|
468
|
-
- server/node_modules/express/node_modules/mkdirp/examples/pow.js
|
469
|
-
- server/node_modules/express/node_modules/mkdirp/examples/pow.js.orig
|
470
|
-
- server/node_modules/express/node_modules/mkdirp/examples/pow.js.rej
|
471
|
-
- server/node_modules/express/node_modules/mkdirp/index.js
|
472
|
-
- server/node_modules/express/node_modules/mkdirp/LICENSE
|
473
|
-
- server/node_modules/express/node_modules/mkdirp/package.json
|
474
|
-
- server/node_modules/express/node_modules/mkdirp/README.markdown
|
475
|
-
- server/node_modules/express/node_modules/mkdirp/test/mkdirp.js
|
476
|
-
- server/node_modules/express/node_modules/mkdirp/test/race.js
|
477
|
-
- server/node_modules/express/node_modules/mkdirp/test/rel.js
|
478
476
|
- server/node_modules/express/node_modules/qs/benchmark.js
|
479
477
|
- server/node_modules/express/node_modules/qs/examples.js
|
480
478
|
- server/node_modules/express/node_modules/qs/History.md
|
@@ -483,24 +481,38 @@ files:
|
|
483
481
|
- server/node_modules/express/node_modules/qs/Makefile
|
484
482
|
- server/node_modules/express/node_modules/qs/package.json
|
485
483
|
- server/node_modules/express/node_modules/qs/Readme.md
|
486
|
-
- server/node_modules/express/node_modules/qs/
|
487
|
-
- server/node_modules/express/node_modules/qs/
|
488
|
-
- server/node_modules/express/node_modules/qs/
|
484
|
+
- server/node_modules/express/node_modules/qs/support/expresso/bin/expresso
|
485
|
+
- server/node_modules/express/node_modules/qs/support/expresso/docs/api.html
|
486
|
+
- server/node_modules/express/node_modules/qs/support/expresso/docs/index.html
|
487
|
+
- server/node_modules/express/node_modules/qs/support/expresso/docs/index.md
|
488
|
+
- server/node_modules/express/node_modules/qs/support/expresso/docs/layout/foot.html
|
489
|
+
- server/node_modules/express/node_modules/qs/support/expresso/docs/layout/head.html
|
490
|
+
- server/node_modules/express/node_modules/qs/support/expresso/History.md
|
491
|
+
- server/node_modules/express/node_modules/qs/support/expresso/lib/bar.js
|
492
|
+
- server/node_modules/express/node_modules/qs/support/expresso/lib/foo.js
|
493
|
+
- server/node_modules/express/node_modules/qs/support/expresso/Makefile
|
494
|
+
- server/node_modules/express/node_modules/qs/support/expresso/package.json
|
495
|
+
- server/node_modules/express/node_modules/qs/support/expresso/Readme.md
|
496
|
+
- server/node_modules/express/node_modules/qs/support/expresso/test/assert.test.js
|
497
|
+
- server/node_modules/express/node_modules/qs/support/expresso/test/async.test.js
|
498
|
+
- server/node_modules/express/node_modules/qs/support/expresso/test/bar.test.js
|
499
|
+
- server/node_modules/express/node_modules/qs/support/expresso/test/foo.test.js
|
500
|
+
- server/node_modules/express/node_modules/qs/support/expresso/test/http.test.js
|
501
|
+
- server/node_modules/express/node_modules/qs/support/expresso/test/serial/async.test.js
|
502
|
+
- server/node_modules/express/node_modules/qs/support/expresso/test/serial/http.test.js
|
503
|
+
- server/node_modules/express/node_modules/qs/support/should/examples/runner.js
|
504
|
+
- server/node_modules/express/node_modules/qs/support/should/History.md
|
505
|
+
- server/node_modules/express/node_modules/qs/support/should/index.js
|
506
|
+
- server/node_modules/express/node_modules/qs/support/should/lib/eql.js
|
507
|
+
- server/node_modules/express/node_modules/qs/support/should/lib/should.js
|
508
|
+
- server/node_modules/express/node_modules/qs/support/should/Makefile
|
509
|
+
- server/node_modules/express/node_modules/qs/support/should/package.json
|
510
|
+
- server/node_modules/express/node_modules/qs/support/should/Readme.md
|
511
|
+
- server/node_modules/express/node_modules/qs/support/should/test/should.test.js
|
512
|
+
- server/node_modules/express/node_modules/qs/test/parse.test.js
|
513
|
+
- server/node_modules/express/node_modules/qs/test/stringify.test.js
|
489
514
|
- server/node_modules/express/package.json
|
490
515
|
- server/node_modules/express/Readme.md
|
491
|
-
- server/node_modules/express/testing/foo/app.js
|
492
|
-
- server/node_modules/express/testing/foo/package.json
|
493
|
-
- server/node_modules/express/testing/foo/public/stylesheets/style.css
|
494
|
-
- server/node_modules/express/testing/foo/routes/index.js
|
495
|
-
- server/node_modules/express/testing/foo/views/index.jade
|
496
|
-
- server/node_modules/express/testing/foo/views/layout.jade
|
497
|
-
- server/node_modules/express/testing/index.js
|
498
|
-
- server/node_modules/express/testing/public/test.txt
|
499
|
-
- server/node_modules/express/testing/views/page.html
|
500
|
-
- server/node_modules/express/testing/views/page.jade
|
501
|
-
- server/node_modules/express/testing/views/test.md
|
502
|
-
- server/node_modules/express/testing/views/user/index.jade
|
503
|
-
- server/node_modules/express/testing/views/user/list.jade
|
504
516
|
- server/node_modules/knox/History.md
|
505
517
|
- server/node_modules/knox/index.html
|
506
518
|
- server/node_modules/knox/index.js
|
@@ -539,16 +551,11 @@ files:
|
|
539
551
|
- server/node_modules/knox/test/fixtures/user.json
|
540
552
|
- server/node_modules/knox/test/knox.test.js
|
541
553
|
- server/node_modules/knox/test/utils.test.js
|
542
|
-
- server/node_modules/node-uuid/benchmark/bench.gnu
|
543
|
-
- server/node_modules/node-uuid/benchmark/bench.sh
|
544
|
-
- server/node_modules/node-uuid/benchmark/benchmark-native.c
|
545
|
-
- server/node_modules/node-uuid/benchmark/benchmark.js
|
546
|
-
- server/node_modules/node-uuid/benchmark/README.md
|
547
554
|
- server/node_modules/node-uuid/LICENSE.md
|
548
555
|
- server/node_modules/node-uuid/package.json
|
549
556
|
- server/node_modules/node-uuid/README.md
|
550
|
-
- server/node_modules/node-uuid/test/benchmark-native
|
551
|
-
- server/node_modules/node-uuid/test/
|
557
|
+
- server/node_modules/node-uuid/test/benchmark-native.c
|
558
|
+
- server/node_modules/node-uuid/test/benchmark.js
|
552
559
|
- server/node_modules/node-uuid/test/test.html
|
553
560
|
- server/node_modules/node-uuid/test/test.js
|
554
561
|
- server/node_modules/node-uuid/uuid.js
|
@@ -688,7 +695,7 @@ files:
|
|
688
695
|
- server/web.js
|
689
696
|
homepage: http://vulcan.com/
|
690
697
|
licenses: []
|
691
|
-
post_install_message:
|
698
|
+
post_install_message:
|
692
699
|
rdoc_options: []
|
693
700
|
require_paths:
|
694
701
|
- lib
|
@@ -706,7 +713,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
706
713
|
version: '0'
|
707
714
|
requirements: []
|
708
715
|
rubyforge_project:
|
709
|
-
rubygems_version: 1.8.
|
716
|
+
rubygems_version: 1.8.11
|
710
717
|
signing_key:
|
711
718
|
specification_version: 3
|
712
719
|
summary: Build software in the cloud
|
@@ -1 +0,0 @@
|
|
1
|
-
I am a plain text file
|
@@ -1,13 +0,0 @@
|
|
1
|
-
POST /upload HTTP/1.1
|
2
|
-
Host: localhost:8080
|
3
|
-
Content-Type: multipart/form-data; boundary=----WebKitFormBoundarytyE4wkKlZ5CQJVTG
|
4
|
-
Content-Length: 1000
|
5
|
-
|
6
|
-
------WebKitFormBoundarytyE4wkKlZ5CQJVTG
|
7
|
-
Content-Disposition: form-data; name="upload"; filename=""
|
8
|
-
Content-Type: text/plain
|
9
|
-
|
10
|
-
I am a plain text file
|
11
|
-
|
12
|
-
------WebKitFormBoundarytyE4wkKlZ5CQJVTG--
|
13
|
-
|
@@ -1,286 +0,0 @@
|
|
1
|
-
# Formidable
|
2
|
-
|
3
|
-
[![Build Status](https://secure.travis-ci.org/felixge/node-formidable.png)](http://travis-ci.org/felixge/node-formidable)
|
4
|
-
|
5
|
-
## Purpose
|
6
|
-
|
7
|
-
A node.js module for parsing form data, especially file uploads.
|
8
|
-
|
9
|
-
## Current status
|
10
|
-
|
11
|
-
This module was developed for [Transloadit](http://transloadit.com/), a service focused on uploading
|
12
|
-
and encoding images and videos. It has been battle-tested against hundreds of GB of file uploads from
|
13
|
-
a large variety of clients and is considered production-ready.
|
14
|
-
|
15
|
-
## Features
|
16
|
-
|
17
|
-
* Fast (~500mb/sec), non-buffering multipart parser
|
18
|
-
* Automatically writing file uploads to disk
|
19
|
-
* Low memory footprint
|
20
|
-
* Graceful error handling
|
21
|
-
* Very high test coverage
|
22
|
-
|
23
|
-
## Changelog
|
24
|
-
|
25
|
-
### v1.0.6
|
26
|
-
|
27
|
-
* Do not default to the default to the field name for file uploads where
|
28
|
-
filename="".
|
29
|
-
|
30
|
-
### v1.0.5
|
31
|
-
|
32
|
-
* Support filename="" in multipart parts
|
33
|
-
* Explain unexpected end() errors in parser better
|
34
|
-
|
35
|
-
**Note:** Starting with this version, formidable emits 'file' events for empty
|
36
|
-
file input fields. Previously those were incorrectly emitted as regular file
|
37
|
-
input fields with value = "".
|
38
|
-
|
39
|
-
### v1.0.4
|
40
|
-
|
41
|
-
* Detect a good default tmp directory regardless of platform. (#88)
|
42
|
-
|
43
|
-
### v1.0.3
|
44
|
-
|
45
|
-
* Fix problems with utf8 characters (#84) / semicolons in filenames (#58)
|
46
|
-
* Small performance improvements
|
47
|
-
* New test suite and fixture system
|
48
|
-
|
49
|
-
### v1.0.2
|
50
|
-
|
51
|
-
* Exclude node\_modules folder from git
|
52
|
-
* Implement new `'aborted'` event
|
53
|
-
* Fix files in example folder to work with recent node versions
|
54
|
-
* Make gently a devDependency
|
55
|
-
|
56
|
-
[See Commits](https://github.com/felixge/node-formidable/compare/v1.0.1...v1.0.2)
|
57
|
-
|
58
|
-
### v1.0.1
|
59
|
-
|
60
|
-
* Fix package.json to refer to proper main directory. (#68, Dean Landolt)
|
61
|
-
|
62
|
-
[See Commits](https://github.com/felixge/node-formidable/compare/v1.0.0...v1.0.1)
|
63
|
-
|
64
|
-
### v1.0.0
|
65
|
-
|
66
|
-
* Add support for multipart boundaries that are quoted strings. (Jeff Craig)
|
67
|
-
|
68
|
-
This marks the beginning of development on version 2.0 which will include
|
69
|
-
several architectural improvements.
|
70
|
-
|
71
|
-
[See Commits](https://github.com/felixge/node-formidable/compare/v0.9.11...v1.0.0)
|
72
|
-
|
73
|
-
### v0.9.11
|
74
|
-
|
75
|
-
* Emit `'progress'` event when receiving data, regardless of parsing it. (Tim Koschützki)
|
76
|
-
* Use [W3C FileAPI Draft](http://dev.w3.org/2006/webapi/FileAPI/) properties for File class
|
77
|
-
|
78
|
-
**Important:** The old property names of the File class will be removed in a
|
79
|
-
future release.
|
80
|
-
|
81
|
-
[See Commits](https://github.com/felixge/node-formidable/compare/v0.9.10...v0.9.11)
|
82
|
-
|
83
|
-
### Older releases
|
84
|
-
|
85
|
-
These releases were done before starting to maintain the above Changelog:
|
86
|
-
|
87
|
-
* [v0.9.10](https://github.com/felixge/node-formidable/compare/v0.9.9...v0.9.10)
|
88
|
-
* [v0.9.9](https://github.com/felixge/node-formidable/compare/v0.9.8...v0.9.9)
|
89
|
-
* [v0.9.8](https://github.com/felixge/node-formidable/compare/v0.9.7...v0.9.8)
|
90
|
-
* [v0.9.7](https://github.com/felixge/node-formidable/compare/v0.9.6...v0.9.7)
|
91
|
-
* [v0.9.6](https://github.com/felixge/node-formidable/compare/v0.9.5...v0.9.6)
|
92
|
-
* [v0.9.5](https://github.com/felixge/node-formidable/compare/v0.9.4...v0.9.5)
|
93
|
-
* [v0.9.4](https://github.com/felixge/node-formidable/compare/v0.9.3...v0.9.4)
|
94
|
-
* [v0.9.3](https://github.com/felixge/node-formidable/compare/v0.9.2...v0.9.3)
|
95
|
-
* [v0.9.2](https://github.com/felixge/node-formidable/compare/v0.9.1...v0.9.2)
|
96
|
-
* [v0.9.1](https://github.com/felixge/node-formidable/compare/v0.9.0...v0.9.1)
|
97
|
-
* [v0.9.0](https://github.com/felixge/node-formidable/compare/v0.8.0...v0.9.0)
|
98
|
-
* [v0.9.0](https://github.com/felixge/node-formidable/compare/v0.8.0...v0.9.0)
|
99
|
-
* [v0.9.0](https://github.com/felixge/node-formidable/compare/v0.8.0...v0.9.0)
|
100
|
-
* [v0.9.0](https://github.com/felixge/node-formidable/compare/v0.8.0...v0.9.0)
|
101
|
-
* [v0.9.0](https://github.com/felixge/node-formidable/compare/v0.8.0...v0.9.0)
|
102
|
-
* [v0.9.0](https://github.com/felixge/node-formidable/compare/v0.8.0...v0.9.0)
|
103
|
-
* [v0.9.0](https://github.com/felixge/node-formidable/compare/v0.8.0...v0.9.0)
|
104
|
-
* [v0.9.0](https://github.com/felixge/node-formidable/compare/v0.8.0...v0.9.0)
|
105
|
-
* [v0.1.0](https://github.com/felixge/node-formidable/commits/v0.1.0)
|
106
|
-
|
107
|
-
## Installation
|
108
|
-
|
109
|
-
Via [npm](http://github.com/isaacs/npm):
|
110
|
-
|
111
|
-
npm install formidable@latest
|
112
|
-
|
113
|
-
Manually:
|
114
|
-
|
115
|
-
git clone git://github.com/felixge/node-formidable.git formidable
|
116
|
-
vim my.js
|
117
|
-
# var formidable = require('./formidable');
|
118
|
-
|
119
|
-
Note: Formidable requires [gently](http://github.com/felixge/node-gently) to run the unit tests, but you won't need it for just using the library.
|
120
|
-
|
121
|
-
## Example
|
122
|
-
|
123
|
-
Parse an incoming file upload.
|
124
|
-
|
125
|
-
var formidable = require('formidable'),
|
126
|
-
http = require('http'),
|
127
|
-
|
128
|
-
sys = require('sys');
|
129
|
-
|
130
|
-
http.createServer(function(req, res) {
|
131
|
-
if (req.url == '/upload' && req.method.toLowerCase() == 'post') {
|
132
|
-
// parse a file upload
|
133
|
-
var form = new formidable.IncomingForm();
|
134
|
-
form.parse(req, function(err, fields, files) {
|
135
|
-
res.writeHead(200, {'content-type': 'text/plain'});
|
136
|
-
res.write('received upload:\n\n');
|
137
|
-
res.end(sys.inspect({fields: fields, files: files}));
|
138
|
-
});
|
139
|
-
return;
|
140
|
-
}
|
141
|
-
|
142
|
-
// show a file upload form
|
143
|
-
res.writeHead(200, {'content-type': 'text/html'});
|
144
|
-
res.end(
|
145
|
-
'<form action="/upload" enctype="multipart/form-data" method="post">'+
|
146
|
-
'<input type="text" name="title"><br>'+
|
147
|
-
'<input type="file" name="upload" multiple="multiple"><br>'+
|
148
|
-
'<input type="submit" value="Upload">'+
|
149
|
-
'</form>'
|
150
|
-
);
|
151
|
-
}).listen(80);
|
152
|
-
|
153
|
-
## API
|
154
|
-
|
155
|
-
### formidable.IncomingForm
|
156
|
-
|
157
|
-
#### new formidable.IncomingForm()
|
158
|
-
|
159
|
-
Creates a new incoming form.
|
160
|
-
|
161
|
-
#### incomingForm.encoding = 'utf-8'
|
162
|
-
|
163
|
-
The encoding to use for incoming form fields.
|
164
|
-
|
165
|
-
#### incomingForm.uploadDir = process.env.TMP || '/tmp' || process.cwd()
|
166
|
-
|
167
|
-
The directory for placing file uploads in. You can move them later on using
|
168
|
-
`fs.rename()`. The default directory is picked at module load time depending on
|
169
|
-
the first existing directory from those listed above.
|
170
|
-
|
171
|
-
#### incomingForm.keepExtensions = false
|
172
|
-
|
173
|
-
If you want the files written to `incomingForm.uploadDir` to include the extensions of the original files, set this property to `true`.
|
174
|
-
|
175
|
-
#### incomingForm.type
|
176
|
-
|
177
|
-
Either 'multipart' or 'urlencoded' depending on the incoming request.
|
178
|
-
|
179
|
-
#### incomingForm.maxFieldsSize = 2 * 1024 * 1024
|
180
|
-
|
181
|
-
Limits the amount of memory a field (not file) can allocate in bytes.
|
182
|
-
If this value is exceeded, an `'error'` event is emitted. The default
|
183
|
-
size is 2MB.
|
184
|
-
|
185
|
-
#### incomingForm.bytesReceived
|
186
|
-
|
187
|
-
The amount of bytes received for this form so far.
|
188
|
-
|
189
|
-
#### incomingForm.bytesExpected
|
190
|
-
|
191
|
-
The expected number of bytes in this form.
|
192
|
-
|
193
|
-
#### incomingForm.parse(request, [cb])
|
194
|
-
|
195
|
-
Parses an incoming node.js `request` containing form data. If `cb` is provided, all fields an files are collected and passed to the callback:
|
196
|
-
|
197
|
-
incomingForm.parse(req, function(err, fields, files) {
|
198
|
-
// ...
|
199
|
-
});
|
200
|
-
|
201
|
-
#### incomingForm.onPart(part)
|
202
|
-
|
203
|
-
You may overwrite this method if you are interested in directly accessing the multipart stream. Doing so will disable any `'field'` / `'file'` events processing which would occur otherwise, making you fully responsible for handling the processing.
|
204
|
-
|
205
|
-
incomingForm.onPart = function(part) {
|
206
|
-
part.addListener('data', function() {
|
207
|
-
// ...
|
208
|
-
});
|
209
|
-
}
|
210
|
-
|
211
|
-
If you want to use formidable to only handle certain parts for you, you can do so:
|
212
|
-
|
213
|
-
incomingForm.onPart = function(part) {
|
214
|
-
if (!part.filename) {
|
215
|
-
// let formidable handle all non-file parts
|
216
|
-
incomingForm.handlePart(part);
|
217
|
-
}
|
218
|
-
}
|
219
|
-
|
220
|
-
Check the code in this method for further inspiration.
|
221
|
-
|
222
|
-
#### Event: 'progress' (bytesReceived, bytesExpected)
|
223
|
-
|
224
|
-
Emitted after each incoming chunk of data that has been parsed. Can be used to roll your own progress bar.
|
225
|
-
|
226
|
-
#### Event: 'field' (name, value)
|
227
|
-
|
228
|
-
Emitted whenever a field / value pair has been received.
|
229
|
-
|
230
|
-
#### Event: 'fileBegin' (name, file)
|
231
|
-
|
232
|
-
Emitted whenever a new file is detected in the upload stream. Use this even if
|
233
|
-
you want to stream the file to somewhere else while buffering the upload on
|
234
|
-
the file system.
|
235
|
-
|
236
|
-
#### Event: 'file' (name, file)
|
237
|
-
|
238
|
-
Emitted whenever a field / file pair has been received. `file` is an instance of `File`.
|
239
|
-
|
240
|
-
#### Event: 'error' (err)
|
241
|
-
|
242
|
-
Emitted when there is an error processing the incoming form. A request that experiences an error is automatically paused, you will have to manually call `request.resume()` if you want the request to continue firing `'data'` events.
|
243
|
-
|
244
|
-
#### Event: 'aborted'
|
245
|
-
|
246
|
-
Emitted when the request was aborted by the user. Right now this can be due to a 'timeout' or 'close' event on the socket. In the future there will be a separate 'timeout' event (needs a change in the node core).
|
247
|
-
|
248
|
-
#### Event: 'end' ()
|
249
|
-
|
250
|
-
Emitted when the entire request has been received, and all contained files have finished flushing to disk. This is a great place for you to send your response.
|
251
|
-
|
252
|
-
### formidable.File
|
253
|
-
|
254
|
-
#### file.size = 0
|
255
|
-
|
256
|
-
The size of the uploaded file in bytes. If the file is still being uploaded (see `'fileBegin'` event), this property says how many bytes of the file have been written to disk yet.
|
257
|
-
|
258
|
-
#### file.path = null
|
259
|
-
|
260
|
-
The path this file is being written to. You can modify this in the `'fileBegin'` event in
|
261
|
-
case you are unhappy with the way formidable generates a temporary path for your files.
|
262
|
-
|
263
|
-
#### file.name = null
|
264
|
-
|
265
|
-
The name this file had according to the uploading client.
|
266
|
-
|
267
|
-
#### file.type = null
|
268
|
-
|
269
|
-
The mime type of this file, according to the uploading client.
|
270
|
-
|
271
|
-
#### file.lastModifiedDate = null
|
272
|
-
|
273
|
-
A date object (or `null`) containing the time this file was last written to. Mostly
|
274
|
-
here for compatibility with the [W3C File API Draft](http://dev.w3.org/2006/webapi/FileAPI/).
|
275
|
-
|
276
|
-
## License
|
277
|
-
|
278
|
-
Formidable is licensed under the MIT license.
|
279
|
-
|
280
|
-
## Ports
|
281
|
-
|
282
|
-
* [multipart-parser](http://github.com/FooBarWidget/multipart-parser): a C++ parser based on formidable
|
283
|
-
|
284
|
-
## Credits
|
285
|
-
|
286
|
-
* [Ryan Dahl](http://twitter.com/ryah) for his work on [http-parser](http://github.com/ry/http-parser) which heavily inspired multipart_parser.js
|