yunlongzha_try_nodejs
Version:
try it
1 lines • 23.6 kB
JSON
{"_id":"dicer","_rev":"36-2e6b0e30be840231cecad8165df10cac","name":"dicer","description":"A very fast streaming multipart parser for node.js","dist-tags":{"latest":"0.2.5"},"versions":{"0.0.1":{"name":"dicer","version":"0.0.1","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"A very fast streaming multipart parser for node.js","main":"./lib/Dicer","engines":{"node":">=0.8.0"},"keywords":["parser","parse","parsing","multipart","form-data","streaming"],"licenses":[{"type":"MIT","url":"http://github.com/mscdex/dicer/raw/master/LICENSE"}],"repository":{"type":"git","url":"http://github.com/mscdex/dicer.git"},"_id":"dicer@0.0.1","dist":{"shasum":"a49781203a81b776eebde145289441088da51de5","tarball":"http://registry.npmjs.org/dicer/-/dicer-0.0.1.tgz"},"_from":"https://github.com/mscdex/dicer/tarball/v0.0.1","_resolved":"https://github.com/mscdex/dicer/tarball/v0.0.1","scripts":{},"_npmVersion":"1.2.11","_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{}},"0.0.2":{"name":"dicer","version":"0.0.2","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"A very fast streaming multipart parser for node.js","main":"./lib/Dicer","dependencies":{"streamsearch":"*"},"engines":{"node":">=0.8.0"},"keywords":["parser","parse","parsing","multipart","form-data","streaming"],"licenses":[{"type":"MIT","url":"http://github.com/mscdex/dicer/raw/master/LICENSE"}],"repository":{"type":"git","url":"http://github.com/mscdex/dicer.git"},"_id":"dicer@0.0.2","dist":{"shasum":"09e0200a469e2c5216d947d026ef80c759d37084","tarball":"http://registry.npmjs.org/dicer/-/dicer-0.0.2.tgz"},"_from":"https://github.com/mscdex/dicer/tarball/v0.0.2","_resolved":"https://github.com/mscdex/dicer/tarball/v0.0.2","scripts":{},"_npmVersion":"1.2.11","_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{}},"0.0.3":{"name":"dicer","version":"0.0.3","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"A very fast streaming multipart parser for node.js","main":"./lib/Dicer","dependencies":{"streamsearch":"*"},"engines":{"node":">=0.8.0"},"keywords":["parser","parse","parsing","multipart","form-data","streaming"],"licenses":[{"type":"MIT","url":"http://github.com/mscdex/dicer/raw/master/LICENSE"}],"repository":{"type":"git","url":"http://github.com/mscdex/dicer.git"},"_id":"dicer@0.0.3","dist":{"shasum":"afb76f112ff7173384a1e751a0a0519bfa2f212f","tarball":"http://registry.npmjs.org/dicer/-/dicer-0.0.3.tgz"},"_from":"https://github.com/mscdex/dicer/tarball/v0.0.3","_resolved":"https://github.com/mscdex/dicer/tarball/v0.0.3","scripts":{},"_npmVersion":"1.2.17","_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{}},"0.0.4":{"name":"dicer","version":"0.0.4","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"A very fast streaming multipart parser for node.js","main":"./lib/Dicer","dependencies":{"streamsearch":"0.1.2"},"scripts":{"test":"node test/test.js"},"engines":{"node":">=0.8.0"},"keywords":["parser","parse","parsing","multipart","form-data","streaming"],"licenses":[{"type":"MIT","url":"http://github.com/mscdex/dicer/raw/master/LICENSE"}],"repository":{"type":"git","url":"http://github.com/mscdex/dicer.git"},"_id":"dicer@0.0.4","dist":{"shasum":"19f0c5c501871cc3622f575ef537d5903f443592","tarball":"http://registry.npmjs.org/dicer/-/dicer-0.0.4.tgz"},"_from":"https://github.com/mscdex/dicer/tarball/v0.0.4","_resolved":"https://github.com/mscdex/dicer/tarball/v0.0.4","_npmVersion":"1.2.18","_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{}},"0.0.5":{"name":"dicer","version":"0.0.5","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"A very fast streaming multipart parser for node.js","main":"./lib/Dicer","dependencies":{"streamsearch":"0.1.2"},"scripts":{"test":"node test/test.js"},"engines":{"node":">=0.8.0"},"keywords":["parser","parse","parsing","multipart","form-data","streaming"],"licenses":[{"type":"MIT","url":"http://github.com/mscdex/dicer/raw/master/LICENSE"}],"repository":{"type":"git","url":"http://github.com/mscdex/dicer.git"},"_id":"dicer@0.0.5","dist":{"shasum":"7897c6cf0229d768843ab37b952a16621938ba91","tarball":"http://registry.npmjs.org/dicer/-/dicer-0.0.5.tgz"},"_from":"https://github.com/mscdex/dicer/tarball/v0.0.5","_resolved":"https://github.com/mscdex/dicer/tarball/v0.0.5","_npmVersion":"1.2.18","_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{}},"0.1.0":{"name":"dicer","version":"0.1.0","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"A very fast streaming multipart parser for node.js","main":"./lib/Dicer","dependencies":{"streamsearch":"0.1.2","readable-stream":"*"},"scripts":{"test":"node test/test.js"},"engines":{"node":">=0.8.0"},"keywords":["parser","parse","parsing","multipart","form-data","streaming"],"licenses":[{"type":"MIT","url":"http://github.com/mscdex/dicer/raw/master/LICENSE"}],"repository":{"type":"git","url":"http://github.com/mscdex/dicer.git"},"_id":"dicer@0.1.0","dist":{"shasum":"82c8bcb029529d072758a42a96999c764e77b10f","tarball":"http://registry.npmjs.org/dicer/-/dicer-0.1.0.tgz"},"_from":"https://github.com/mscdex/dicer/tarball/v0.1.0","_resolved":"https://github.com/mscdex/dicer/tarball/v0.1.0","_npmVersion":"1.2.18","_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{}},"0.1.1":{"name":"dicer","version":"0.1.1","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"A very fast streaming multipart parser for node.js","main":"./lib/Dicer","dependencies":{"streamsearch":"0.1.2","readable-stream":"*"},"scripts":{"test":"node test/test.js"},"engines":{"node":">=0.8.0"},"keywords":["parser","parse","parsing","multipart","form-data","streaming"],"licenses":[{"type":"MIT","url":"http://github.com/mscdex/dicer/raw/master/LICENSE"}],"repository":{"type":"git","url":"http://github.com/mscdex/dicer.git"},"_id":"dicer@0.1.1","dist":{"shasum":"2617a741418465a46e60d2fbeab559c9e5800d32","tarball":"http://registry.npmjs.org/dicer/-/dicer-0.1.1.tgz"},"_from":"https://github.com/mscdex/dicer/tarball/v0.1.1","_resolved":"https://github.com/mscdex/dicer/tarball/v0.1.1","_npmVersion":"1.2.18","_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{}},"0.1.2":{"name":"dicer","version":"0.1.2","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"A very fast streaming multipart parser for node.js","main":"./lib/Dicer","dependencies":{"streamsearch":"0.1.2","readable-stream":"*"},"scripts":{"test":"node test/test.js"},"engines":{"node":">=0.8.0"},"keywords":["parser","parse","parsing","multipart","form-data","streaming"],"licenses":[{"type":"MIT","url":"http://github.com/mscdex/dicer/raw/master/LICENSE"}],"repository":{"type":"git","url":"http://github.com/mscdex/dicer.git"},"bugs":{"url":"https://github.com/mscdex/dicer/issues"},"_id":"dicer@0.1.2","dist":{"shasum":"4156a338b5147e3249c25fe06a3011bd85e55d77","tarball":"http://registry.npmjs.org/dicer/-/dicer-0.1.2.tgz"},"_from":"https://github.com/mscdex/dicer/tarball/v0.1.2","_resolved":"https://github.com/mscdex/dicer/tarball/v0.1.2","_npmVersion":"1.2.23","_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{}},"0.1.3":{"name":"dicer","version":"0.1.3","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"A very fast streaming multipart parser for node.js","main":"./lib/Dicer","dependencies":{"streamsearch":"0.1.2","readable-stream":"*"},"scripts":{"test":"node test/test.js"},"engines":{"node":">=0.8.0"},"keywords":["parser","parse","parsing","multipart","form-data","streaming"],"licenses":[{"type":"MIT","url":"http://github.com/mscdex/dicer/raw/master/LICENSE"}],"repository":{"type":"git","url":"http://github.com/mscdex/dicer.git"},"bugs":{"url":"https://github.com/mscdex/dicer/issues"},"_id":"dicer@0.1.3","dist":{"shasum":"9841fee51d30cdb2dd14659ee48436b5b11828ee","tarball":"http://registry.npmjs.org/dicer/-/dicer-0.1.3.tgz"},"_from":"https://github.com/mscdex/dicer/tarball/v0.1.3","_resolved":"https://github.com/mscdex/dicer/tarball/v0.1.3","_npmVersion":"1.2.23","_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{}},"0.1.4":{"name":"dicer","version":"0.1.4","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"A very fast streaming multipart parser for node.js","main":"./lib/Dicer","dependencies":{"streamsearch":"0.1.2","readable-stream":"1.1.x"},"scripts":{"test":"node test/test.js"},"engines":{"node":">=0.8.0"},"keywords":["parser","parse","parsing","multipart","form-data","streaming"],"licenses":[{"type":"MIT","url":"http://github.com/mscdex/dicer/raw/master/LICENSE"}],"repository":{"type":"git","url":"http://github.com/mscdex/dicer.git"},"bugs":{"url":"https://github.com/mscdex/dicer/issues"},"_id":"dicer@0.1.4","dist":{"shasum":"dba531a1836e7bebaed0754abee33f5282eff86f","tarball":"http://registry.npmjs.org/dicer/-/dicer-0.1.4.tgz"},"_from":"https://github.com/mscdex/dicer/tarball/v0.1.4","_resolved":"https://github.com/mscdex/dicer/tarball/v0.1.4","_npmVersion":"1.3.11","_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{}},"0.1.5":{"name":"dicer","version":"0.1.5","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"A very fast streaming multipart parser for node.js","main":"./lib/Dicer","dependencies":{"streamsearch":"0.1.2","readable-stream":"1.1.x"},"scripts":{"test":"node test/test.js"},"engines":{"node":">=0.8.0"},"keywords":["parser","parse","parsing","multipart","form-data","streaming"],"licenses":[{"type":"MIT","url":"http://github.com/mscdex/dicer/raw/master/LICENSE"}],"repository":{"type":"git","url":"http://github.com/mscdex/dicer.git"},"bugs":{"url":"https://github.com/mscdex/dicer/issues"},"_id":"dicer@0.1.5","dist":{"shasum":"18d465fa8212cb6ef7cd30a8df14b7b5b073fae3","tarball":"http://registry.npmjs.org/dicer/-/dicer-0.1.5.tgz"},"_from":"https://github.com/mscdex/dicer/tarball/v0.1.5","_resolved":"https://github.com/mscdex/dicer/tarball/v0.1.5","_npmVersion":"1.3.11","_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{}},"0.1.6":{"name":"dicer","version":"0.1.6","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"A very fast streaming multipart parser for node.js","main":"./lib/Dicer","dependencies":{"streamsearch":"0.1.2","readable-stream":"1.1.x"},"scripts":{"test":"node test/test.js"},"engines":{"node":">=0.8.0"},"keywords":["parser","parse","parsing","multipart","form-data","streaming"],"licenses":[{"type":"MIT","url":"http://github.com/mscdex/dicer/raw/master/LICENSE"}],"repository":{"type":"git","url":"http://github.com/mscdex/dicer.git"},"bugs":{"url":"https://github.com/mscdex/dicer/issues"},"homepage":"https://github.com/mscdex/dicer","_id":"dicer@0.1.6","dist":{"shasum":"80c074c3cd75438f119391dde1b50f62e5554e43","tarball":"http://registry.npmjs.org/dicer/-/dicer-0.1.6.tgz"},"_from":"https://github.com/mscdex/dicer/tarball/v0.1.6","_resolved":"https://github.com/mscdex/dicer/tarball/v0.1.6","_npmVersion":"1.3.14","_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{}},"0.2.0":{"name":"dicer","version":"0.2.0","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"A very fast streaming multipart parser for node.js","main":"./lib/Dicer","dependencies":{"streamsearch":"0.1.2","readable-stream":"1.1.x"},"scripts":{"test":"node test/test.js"},"engines":{"node":">=0.8.0"},"keywords":["parser","parse","parsing","multipart","form-data","streaming"],"licenses":[{"type":"MIT","url":"http://github.com/mscdex/dicer/raw/master/LICENSE"}],"repository":{"type":"git","url":"http://github.com/mscdex/dicer.git"},"bugs":{"url":"https://github.com/mscdex/dicer/issues"},"homepage":"https://github.com/mscdex/dicer","_id":"dicer@0.2.0","dist":{"shasum":"ae8d7f3f6d7c8d6b78593b22b9dfab74360919d2","tarball":"http://registry.npmjs.org/dicer/-/dicer-0.2.0.tgz"},"_from":"https://github.com/mscdex/dicer/tarball/v0.2.0","_resolved":"https://github.com/mscdex/dicer/tarball/v0.2.0","_npmVersion":"1.4.3","_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{}},"0.2.1":{"name":"dicer","version":"0.2.1","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"A very fast streaming multipart parser for node.js","main":"./lib/Dicer","dependencies":{"streamsearch":"0.1.2","readable-stream":"1.1.x"},"scripts":{"test":"node test/test.js"},"engines":{"node":">=0.8.0"},"keywords":["parser","parse","parsing","multipart","form-data","streaming"],"licenses":[{"type":"MIT","url":"http://github.com/mscdex/dicer/raw/master/LICENSE"}],"repository":{"type":"git","url":"http://github.com/mscdex/dicer.git"},"bugs":{"url":"https://github.com/mscdex/dicer/issues"},"homepage":"https://github.com/mscdex/dicer","_id":"dicer@0.2.1","dist":{"shasum":"e021d6aadeaac4d829e8a789cd7eca06bd16ee7d","tarball":"http://registry.npmjs.org/dicer/-/dicer-0.2.1.tgz"},"_from":"https://github.com/mscdex/dicer/tarball/v0.2.1","_resolved":"https://github.com/mscdex/dicer/tarball/v0.2.1","_npmVersion":"1.4.3","_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{}},"0.2.2":{"name":"dicer","version":"0.2.2","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"A very fast streaming multipart parser for node.js","main":"./lib/Dicer","dependencies":{"streamsearch":"0.1.2","readable-stream":"1.1.x"},"scripts":{"test":"node test/test.js"},"engines":{"node":">=0.8.0"},"keywords":["parser","parse","parsing","multipart","form-data","streaming"],"licenses":[{"type":"MIT","url":"http://github.com/mscdex/dicer/raw/master/LICENSE"}],"repository":{"type":"git","url":"http://github.com/mscdex/dicer.git"},"bugs":{"url":"https://github.com/mscdex/dicer/issues"},"homepage":"https://github.com/mscdex/dicer","_id":"dicer@0.2.2","dist":{"shasum":"0905df5a8a6a1f91e9f60695e90d6d76768b97ed","tarball":"http://registry.npmjs.org/dicer/-/dicer-0.2.2.tgz"},"_from":"https://github.com/mscdex/dicer/tarball/v0.2.2","_resolved":"https://github.com/mscdex/dicer/tarball/v0.2.2","_npmVersion":"1.4.3","_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{}},"0.2.3":{"name":"dicer","version":"0.2.3","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"A very fast streaming multipart parser for node.js","main":"./lib/Dicer","dependencies":{"streamsearch":"0.1.2","readable-stream":"1.1.x"},"scripts":{"test":"node test/test.js"},"engines":{"node":">=0.8.0"},"keywords":["parser","parse","parsing","multipart","form-data","streaming"],"licenses":[{"type":"MIT","url":"http://github.com/mscdex/dicer/raw/master/LICENSE"}],"repository":{"type":"git","url":"http://github.com/mscdex/dicer.git"},"bugs":{"url":"https://github.com/mscdex/dicer/issues"},"homepage":"https://github.com/mscdex/dicer","_id":"dicer@0.2.3","dist":{"shasum":"f00281189a55c2351ef80490a4fe9fb2c59c4939","tarball":"http://registry.npmjs.org/dicer/-/dicer-0.2.3.tgz"},"_from":"https://github.com/mscdex/dicer/tarball/v0.2.3","_resolved":"https://github.com/mscdex/dicer/tarball/v0.2.3","_npmVersion":"1.4.3","_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{}},"0.2.4":{"name":"dicer","version":"0.2.4","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"A very fast streaming multipart parser for node.js","main":"./lib/Dicer","dependencies":{"streamsearch":"0.1.2","readable-stream":"1.1.x"},"scripts":{"test":"node test/test.js"},"engines":{"node":">=0.8.0"},"keywords":["parser","parse","parsing","multipart","form-data","streaming"],"licenses":[{"type":"MIT","url":"http://github.com/mscdex/dicer/raw/master/LICENSE"}],"repository":{"type":"git","url":"http://github.com/mscdex/dicer.git"},"bugs":{"url":"https://github.com/mscdex/dicer/issues"},"homepage":"https://github.com/mscdex/dicer","_id":"dicer@0.2.4","_shasum":"5b5599ca27f661fa08f02ccecb355b998289f0d3","_resolved":"https://github.com/mscdex/dicer/tarball/v0.2.4","_from":"https://github.com/mscdex/dicer/tarball/v0.2.4","_npmVersion":"2.1.16","_nodeVersion":"0.10.31","_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"dist":{"shasum":"5b5599ca27f661fa08f02ccecb355b998289f0d3","tarball":"http://registry.npmjs.org/dicer/-/dicer-0.2.4.tgz"},"directories":{}},"0.2.5":{"name":"dicer","version":"0.2.5","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"A very fast streaming multipart parser for node.js","main":"./lib/Dicer","dependencies":{"streamsearch":"0.1.2","readable-stream":"1.1.x"},"scripts":{"test":"node test/test.js"},"engines":{"node":">=0.8.0"},"keywords":["parser","parse","parsing","multipart","form-data","streaming"],"licenses":[{"type":"MIT","url":"http://github.com/mscdex/dicer/raw/master/LICENSE"}],"repository":{"type":"git","url":"git+ssh://git@github.com/mscdex/dicer.git"},"bugs":{"url":"https://github.com/mscdex/dicer/issues"},"homepage":"https://github.com/mscdex/dicer#readme","_id":"dicer@0.2.5","_shasum":"5996c086bb33218c812c090bddc09cd12facb70f","_resolved":"https://github.com/mscdex/dicer/tarball/v0.2.5","_from":"https://github.com/mscdex/dicer/tarball/v0.2.5","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"dist":{"shasum":"5996c086bb33218c812c090bddc09cd12facb70f","tarball":"http://registry.npmjs.org/dicer/-/dicer-0.2.5.tgz"},"directories":{}}},"readme":"\nDescription\n===========\n\nA very fast streaming multipart parser for node.js.\n\nBenchmarks can be found [here](https://github.com/mscdex/dicer/wiki/Benchmarks).\n\n\nRequirements\n============\n\n* [node.js](http://nodejs.org/) -- v0.8.0 or newer\n\n\nInstall\n============\n\n npm install dicer\n\n\nExamples\n========\n\n* Parse an HTTP form upload\n\n```javascript\nvar inspect = require('util').inspect,\n http = require('http');\n\nvar Dicer = require('dicer');\n\n // quick and dirty way to parse multipart boundary\nvar RE_BOUNDARY = /^multipart\\/.+?(?:; boundary=(?:(?:\"(.+)\")|(?:([^\\s]+))))$/i,\n HTML = new Buffer('<html><head></head><body>\\\n <form method=\"POST\" enctype=\"multipart/form-data\">\\\n <input type=\"text\" name=\"textfield\"><br />\\\n <input type=\"file\" name=\"filefield\"><br />\\\n <input type=\"submit\">\\\n </form>\\\n </body></html>'),\n PORT = 8080;\n\nhttp.createServer(function(req, res) {\n var m;\n if (req.method === 'POST'\n && req.headers['content-type']\n && (m = RE_BOUNDARY.exec(req.headers['content-type']))) {\n var d = new Dicer({ boundary: m[1] || m[2] });\n\n d.on('part', function(p) {\n console.log('New part!');\n p.on('header', function(header) {\n for (var h in header) {\n console.log('Part header: k: ' + inspect(h)\n + ', v: ' + inspect(header[h]));\n }\n });\n p.on('data', function(data) {\n console.log('Part data: ' + inspect(data.toString()));\n });\n p.on('end', function() {\n console.log('End of part\\n');\n });\n });\n d.on('finish', function() {\n console.log('End of parts');\n res.writeHead(200);\n res.end('Form submission successful!');\n });\n req.pipe(d);\n } else if (req.method === 'GET' && req.url === '/') {\n res.writeHead(200);\n res.end(HTML);\n } else {\n res.writeHead(404);\n res.end();\n }\n}).listen(PORT, function() {\n console.log('Listening for requests on port ' + PORT);\n});\n```\n\n\nAPI\n===\n\n_Dicer_ is a _WritableStream_\n\nDicer (special) events\n----------------------\n\n* **finish**() - Emitted when all parts have been parsed and the Dicer instance has been ended.\n\n* **part**(< _PartStream_ >stream) - Emitted when a new part has been found.\n\n* **preamble**(< _PartStream_ >stream) - Emitted for preamble if you should happen to need it (can usually be ignored).\n\n* **trailer**(< _Buffer_ >data) - Emitted when trailing data was found after the terminating boundary (as with the preamble, this can usually be ignored too).\n\n\nDicer methods\n-------------\n\n* **(constructor)**(< _object_ >config) - Creates and returns a new Dicer instance with the following valid `config` settings:\n\n * **boundary** - _string_ - This is the boundary used to detect the beginning of a new part.\n\n * **headerFirst** - _boolean_ - If true, preamble header parsing will be performed first.\n\n * **maxHeaderPairs** - _integer_ - The maximum number of header key=>value pairs to parse **Default:** 2000 (same as node's http).\n\n* **setBoundary**(< _string_ >boundary) - _(void)_ - Sets the boundary to use for parsing and performs some initialization needed for parsing. You should only need to use this if you set `headerFirst` to true in the constructor and are parsing the boundary from the preamble header.\n\n\n\n_PartStream_ is a _ReadableStream_\n\nPartStream (special) events\n---------------------------\n\n* **header**(< _object_ >header) - An object containing the header for this particular part. Each property value is an _array_ of one or more string values.\n","maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"time":{"modified":"2015-11-15T16:57:23.016Z","created":"2013-03-05T00:08:43.370Z","0.0.1":"2013-03-05T00:08:45.148Z","0.0.2":"2013-03-05T00:33:16.872Z","0.0.3":"2013-04-07T20:47:39.069Z","0.0.4":"2013-04-14T17:49:22.930Z","0.0.5":"2013-04-15T04:25:19.119Z","0.1.0":"2013-04-18T22:36:53.111Z","0.1.1":"2013-04-21T00:37:15.783Z","0.1.2":"2013-05-29T03:29:59.491Z","0.1.3":"2013-05-29T16:59:53.071Z","0.1.4":"2013-11-05T13:48:22.160Z","0.1.5":"2013-11-06T15:55:32.287Z","0.1.6":"2013-12-12T01:04:38.892Z","0.2.0":"2014-02-23T19:29:05.941Z","0.2.1":"2014-02-23T20:23:06.307Z","0.2.2":"2014-02-23T21:03:39.552Z","0.2.3":"2014-02-26T20:11:03.473Z","0.2.4":"2015-03-20T20:23:59.562Z","0.2.5":"2015-11-15T16:57:23.016Z"},"author":{"name":"Brian White","email":"mscdex@mscdex.net"},"repository":{"type":"git","url":"git+ssh://git@github.com/mscdex/dicer.git"},"users":{"coverslide":true},"readmeFilename":"README.md","homepage":"https://github.com/mscdex/dicer#readme","keywords":["parser","parse","parsing","multipart","form-data","streaming"],"bugs":{"url":"https://github.com/mscdex/dicer/issues"},"_attachments":{},"_etag":"\"8I66AMVUI64VASCETXQ6D0VPE\""}