{"_id":"express-formidable","_rev":"28-00706ec03dd8ea2b7fb34ba0d455e489","name":"express-formidable","dist-tags":{"latest":"1.2.0"},"versions":{"0.1.0":{"name":"express-formidable","version":"0.1.0","keywords":["express","middleware","formidable"],"author":{"name":"Hyunje Alex Jun","email":"me@noraesae.net"},"license":"MIT","_id":"express-formidable@0.1.0","maintainers":[{"name":"noraesae","email":"me@noraesae.net"}],"contributors":[{"name":"Hyunje Alex Jun","email":"me@noraesae.net"}],"homepage":"https://github.com/noraesae/express-formidable","bugs":{"url":"https://github.com/noraesae/express-formidable/issues"},"dist":{"shasum":"b7a6dbcd961240b46e81d5c7677d7dc2afefd1ad","tarball":"https://registry.npmjs.org/express-formidable/-/express-formidable-0.1.0.tgz","integrity":"sha512-xRct4G9SNvnLHE4g/yjnQwwsBzdasL7dCzJc78BvMwaP1t+A0b4TyDDh32sH6kX0mG+D+1bqxWHrVS1UaLn8Wg==","signatures":[{"sig":"MEUCIDAvLn6xHYdlbs7S1ayINsZNFufGIOsj6gm5vFs+O8dsAiEAhBXkNJp/X6s6dLqUpzRwKFk/ZhkFbsD672XfAOIp5ns=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/middleware.js","_from":".","_shasum":"b7a6dbcd961240b46e81d5c7677d7dc2afefd1ad","gitHead":"5e66d96a915a5e576dfca7e75346dd38bbc4aad1","scripts":{"test":"make lint","prepublish":"make build"},"_npmUser":{"name":"noraesae","email":"me@noraesae.net"},"repository":{"url":"https://github.com/noraesae/express-formidable.git","type":"git"},"_npmVersion":"2.5.1","description":"An Express middleware of Formidable that just works.","directories":{},"_nodeVersion":"0.12.0","dependencies":{"formidable":"^1.0.17","underscore":"^1.8.3"},"devDependencies":{"tslint":"^2.4.5","express":"^4.13.3","typescript":"^1.5.3"}},"0.1.1":{"name":"express-formidable","version":"0.1.1","keywords":["express","middleware","formidable"],"author":{"name":"Hyunje Alex Jun","email":"me@noraesae.net"},"license":"MIT","_id":"express-formidable@0.1.1","maintainers":[{"name":"noraesae","email":"me@noraesae.net"}],"contributors":[{"name":"Hyunje Alex Jun","email":"me@noraesae.net"}],"homepage":"https://github.com/noraesae/express-formidable","bugs":{"url":"https://github.com/noraesae/express-formidable/issues"},"dist":{"shasum":"6b62b70d99ad01558ab464d7ed049f411a92c55e","tarball":"https://registry.npmjs.org/express-formidable/-/express-formidable-0.1.1.tgz","integrity":"sha512-O52kQScji4oKW3Z0yLUtyx1l3cfjnqa/xnsnvJtzvWJn1r2NppDZeQc4LvVR+bXzw6JSKVJH0MbTaAUiBJDTBw==","signatures":[{"sig":"MEUCIDTZKrflEzynUKdIHSHPSyGtppw1S/3Bd64sWm1Ab4XPAiEAh7IYHe8Y3ISM9JBIRCMaE2a+Z+Xa8mRLm7hxrg4EtfI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/middleware.js","_from":".","_shasum":"6b62b70d99ad01558ab464d7ed049f411a92c55e","gitHead":"a6b1143c6c5cd645e2601d54e5193378b3cbd117","scripts":{"test":"make lint","prepublish":"make build"},"_npmUser":{"name":"noraesae","email":"me@noraesae.net"},"repository":{"url":"https://github.com/noraesae/express-formidable.git","type":"git"},"typescript":{"definition":"./express-formidable.d.ts"},"_npmVersion":"2.5.1","description":"An Express middleware of Formidable that just works.","directories":{},"_nodeVersion":"0.12.0","dependencies":{"formidable":"^1.0.17","underscore":"^1.8.3"},"devDependencies":{"tslint":"^2.4.5","express":"^4.13.3","dts-bundle":"^0.3.0","typescript":"^1.5.3"}},"0.1.2":{"name":"express-formidable","version":"0.1.2","keywords":["express","middleware","formidable"],"author":{"name":"Hyunje Alex Jun","email":"me@noraesae.net"},"license":"MIT","_id":"express-formidable@0.1.2","maintainers":[{"name":"noraesae","email":"me@noraesae.net"}],"contributors":[{"name":"Hyunje Alex Jun","email":"me@noraesae.net"}],"homepage":"https://github.com/noraesae/express-formidable","bugs":{"url":"https://github.com/noraesae/express-formidable/issues"},"dist":{"shasum":"0ec9dad72fc15a82831224b1f18f087462d898a8","tarball":"https://registry.npmjs.org/express-formidable/-/express-formidable-0.1.2.tgz","integrity":"sha512-T0PcqD4D9+DeN9yRdeVOwIAqgqcB+AWNXhoIUMFOGEXUIDgSZn2RBd7FFT4ZxsM4HhJ4KqbRCKAW6rHJE6nxGA==","signatures":[{"sig":"MEUCIDsop0Zx0FYUXx07c6IUed4iAHIVUhRsgy1EL5GxvUYGAiEAvdUOYUp67NpvvL6qIohxO7ODnDYaD5CEgRTKW8e7bGY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/middleware.js","_from":".","_shasum":"0ec9dad72fc15a82831224b1f18f087462d898a8","gitHead":"7a5e90c95d7431a412154075765dc05ee953a31c","scripts":{"test":"make lint","prepublish":"make build"},"_npmUser":{"name":"noraesae","email":"me@noraesae.net"},"repository":{"url":"git+https://github.com/noraesae/express-formidable.git","type":"git"},"typescript":{"definition":"./express-formidable.d.ts"},"_npmVersion":"3.3.6","description":"An Express middleware of Formidable that just works.","directories":{},"_nodeVersion":"5.0.0","dependencies":{"formidable":"^1.0.17","underscore":"^1.8.3"},"devDependencies":{"tslint":"^2.4.5","express":"^4.13.3","dts-bundle":"^0.3.0","typescript":"^1.5.3"}},"0.1.3":{"name":"express-formidable","version":"0.1.3","keywords":["express","middleware","formidable"],"author":{"name":"Hyunje Alex Jun","email":"me@noraesae.net"},"license":"MIT","_id":"express-formidable@0.1.3","maintainers":[{"name":"noraesae","email":"me@noraesae.net"}],"contributors":[{"name":"Hyunje Alex Jun","email":"me@noraesae.net"}],"homepage":"https://github.com/noraesae/express-formidable","bugs":{"url":"https://github.com/noraesae/express-formidable/issues"},"dist":{"shasum":"569f65c8c0ed5a726b5acab5b7d633d477d4bef2","tarball":"https://registry.npmjs.org/express-formidable/-/express-formidable-0.1.3.tgz","integrity":"sha512-vsP5S8DS6G0WLvgLDjfqk7tXZhf60Ds8LKhEJbRQUlPYv+ReCepxlN4/LdMtOfWLeAupJZsiSdSK3nZpeMVviw==","signatures":[{"sig":"MEUCIQCSkHQ9GKt5ARvxHK1NLIWTMf3pqfsbtkg3ZxzBu7ppKwIgcIJ/irHoZzZdpCx+2mfJFwcL9Wy4SPGmC581rPJwyrM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/middleware.js","_from":".","_shasum":"569f65c8c0ed5a726b5acab5b7d633d477d4bef2","gitHead":"6f54c20cad4df963e0fef6d0fca84692b0e1677f","scripts":{"test":"make lint","prepublish":"make build"},"typings":"express-formidable.d.ts","_npmUser":{"name":"noraesae","email":"me@noraesae.net"},"repository":{"url":"git+https://github.com/noraesae/express-formidable.git","type":"git"},"typescript":{"definition":"./express-formidable.d.ts"},"_npmVersion":"3.8.6","description":"An Express middleware of Formidable that just works.","directories":{},"_nodeVersion":"6.1.0","dependencies":{"formidable":"^1.0.17","underscore":"^1.8.3"},"devDependencies":{"tslint":"^2.4.5","express":"^4.13.3","dts-bundle":"^0.3.0","typescript":"^1.5.3"},"_npmOperationalInternal":{"tmp":"tmp/express-formidable-0.1.3.tgz_1467534565826_0.09954724926501513","host":"packages-16-east.internal.npmjs.com"}},"1.0.0":{"name":"express-formidable","version":"1.0.0","keywords":["express","middleware","formidable"],"author":{"name":"Jun","email":"me@noraesae.net"},"license":"MIT","_id":"express-formidable@1.0.0","maintainers":[{"name":"noraesae","email":"me@noraesae.net"}],"homepage":"https://github.com/noraesae/express-formidable","bugs":{"url":"https://github.com/noraesae/express-formidable/issues"},"dist":{"shasum":"dc922f0455132322458a9ec1a301d891b3ffca8d","tarball":"https://registry.npmjs.org/express-formidable/-/express-formidable-1.0.0.tgz","integrity":"sha512-jzkCzzn1Fy6f0XIFIh/eY8Di8NvLu2EOvmxS1c7+3cLt2kUqQXSKWYNrRo0HYpnm2Cia+XtXmsVZAGTagW2hbg==","signatures":[{"sig":"MEUCIQCKvvI19N9NTzuzl3P1/M1XRMkNeT33LEav+VM3My9iFwIgca+GodJeGi8n6j0Z22xQktvDRcntDNX+gFczt/fwBHw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/middleware.js","_from":".","_shasum":"dc922f0455132322458a9ec1a301d891b3ffca8d","engines":{"node":">= 4"},"gitHead":"ab2f6f83ef4aab313b5c1b3b3b1e1b0010db5136","scripts":{"test":"eslint . && mocha test"},"_npmUser":{"name":"noraesae","email":"me@noraesae.net"},"repository":{"url":"git+https://github.com/noraesae/express-formidable.git","type":"git"},"_npmVersion":"2.15.8","description":"An Express middleware of Formidable that just works.","directories":{},"_nodeVersion":"4.4.7","dependencies":{"formidable":"^1.0.17"},"devDependencies":{"mocha":"^3.1.0","eslint":"^3.7.1","express":"^4.14.0","request":"^2.75.0","eslint-plugin-import":"^1.16.0","eslint-config-airbnb-base":"^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/express-formidable-1.0.0.tgz_1475681783134_0.5174125619232655","host":"packages-16-east.internal.npmjs.com"}},"1.2.0":{"name":"express-formidable","version":"1.2.0","keywords":["express","middleware","formidable"],"author":{"name":"Jun","email":"me@noraesae.net"},"license":"MIT","_id":"express-formidable@1.2.0","maintainers":[{"name":"utatti","email":"me@noraesae.net"}],"homepage":"https://github.com/noraesae/express-formidable","bugs":{"url":"https://github.com/noraesae/express-formidable/issues"},"dist":{"shasum":"6b05bc05da9e4cd712cac166fcb41ef7172b760c","tarball":"https://registry.npmjs.org/express-formidable/-/express-formidable-1.2.0.tgz","fileCount":5,"integrity":"sha512-w1vXjF3gb50UKTNkFaW8/4rqY4dUrKfZ1sAZzwAF9YxCAgj/29QZsycf71di0GkskrZOAkubk9pvGYfxyAMYiw==","signatures":[{"sig":"MEUCIBdoglv0Ecm7d9j1VjoaxO1NQnhO/N60HVyrZ+Q0t94GAiEA+CJoDL6uvOu4WgNHky5DiyVpIJ/13LQOiXfmihP8+gQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5717,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbza7YCRA9TVsSAnZWagAA5loP/ixCcrZ/CbQI3REDC07A\nt+gogifwznCd4lai4zg3j9OY+lEPJWPgUO31qdaAI2JLFcqTCO9heuTqgo7z\nwgG1cG8tDRfK76KQGv9WaoIlsXf2+Eb1B8oaM4PtT7/nGC9fmlWpHug9yoHM\nlX3CCre6UVew9z44W6m/pAjtmw/g0+5lW4xtwljZv7Z65wanSK00Q+qGFZxO\ndvR6mQdODuig9fl8OBE+ePb6FxzkJJDbBSvf4+WeTByHEFx1lhKxmUEXZwqi\naI0ygY3/hlyzeTn5zimf2OMXRLwo2Ton6D1O4VwtoAjBamjLBZBaPOinwaR1\nu6wIwVZbxAIXWPOeipUF5J9CoKEuzpuSWxWXP2n7yXW2XlwTfrmzvOhB5rXN\n/IOX7R02amMDecCUJVWKPj2yUvG20l5ILlPbrqdiVcEoaIPEDKjflTrZlKJE\nO1yUpnC33G60UYtbNPEL+GGTwCg6X/Qew5PG9eGPGZtPeKVsuDkGXu+3dYWR\njYojwau1OpgiLBybJkH4cx4GqhPFEC3J4d6aLsQSC0I9zcE05DQHrtA8Tr9r\n3HyNOCiBFAqMO7Slpskw9cobewNeOgjDnqN7KoLAwreEsHd108RsS0Ai3mwT\npz0qIYpr0hEvtqnz+sEUcxPOy6e9XruRfYCjDKQbBLIsoXTdmiz2lAMnRDs4\nx74p\r\n=y9yX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/middleware.js","engines":{"node":">= 8"},"gitHead":"3bba355d6a0840a680f6a4d0b90651bea03966aa","scripts":{"test":"eslint . && jest test/middleware.test.js --forceExit --detectOpenHandles"},"_npmUser":{"name":"utatti","email":"me@noraesae.net"},"repository":{"url":"git+https://github.com/noraesae/express-formidable.git","type":"git"},"_npmVersion":"6.4.1","description":"An Express middleware of Formidable that just works.","directories":{},"_nodeVersion":"8.9.0","dependencies":{"formidable":"^1.0.17"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","eslint":"^3.7.1","express":"^4.14.0","request":"^2.88.0","eslint-plugin-import":"^1.16.0","eslint-config-airbnb-base":"^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/express-formidable_1.2.0_1540206295747_0.05106644341405353","host":"s3://npm-registry-packages"}}},"time":{"created":"2015-08-30T08:46:33.187Z","modified":"2024-07-15T03:00:09.439Z","0.1.0":"2015-08-30T08:46:33.187Z","0.1.1":"2015-08-30T15:45:39.474Z","0.1.2":"2015-11-23T16:09:20.885Z","0.1.3":"2016-07-03T08:29:29.252Z","1.0.0":"2016-10-05T15:36:26.158Z","1.2.0":"2018-10-22T11:04:55.820Z"},"bugs":{"url":"https://github.com/noraesae/express-formidable/issues"},"author":{"name":"Jun","email":"me@noraesae.net"},"license":"MIT","homepage":"https://github.com/noraesae/express-formidable","keywords":["express","middleware","formidable"],"repository":{"url":"git+https://github.com/noraesae/express-formidable.git","type":"git"},"description":"An Express middleware of Formidable that just works.","maintainers":[{"name":"utatti","email":"me@noraesae.net"}],"readme":"# express-formidable [![Build Status](https://travis-ci.org/noraesae/express-formidable.svg?branch=master)](https://travis-ci.org/noraesae/express-formidable)\n\nAn [Express](http://expressjs.com) middleware of\n[Formidable](https://github.com/felixge/node-formidable) that just works.\n\n## What are Express, Formidable, and this?\n\n[Express](http://expressjs.com) is a fast, unopinionated, minimalist web\nframework for Node.js.\n\n[Formidable](https://github.com/felixge/node-formidable) is a Node.js module\nfor parsing form data, including `multipart/form-data` file upload.\n\nSo, **`express-formidable`** is something like a bridge between them,\nspecifically an Express middleware implementation of Formidable.\n\nIt aims to just work.\n\n## Install\n\n```\nnpm install express-formidable\n```\n\n## How to use\n\n```js\nconst express = require('express');\nconst formidableMiddleware = require('express-formidable');\n\nvar app = express();\n\napp.use(formidableMiddleware());\n\napp.post('/upload', (req, res) => {\n  req.fields; // contains non-file fields\n  req.files; // contains files\n});\n```\n\nAnd that's it.\n\nexpress-formidable can basically parse form types Formidable can handle,\nincluding `application/x-www-form-urlencoded`, `application/json`, and\n`multipart/form-data`.\n\n## Option\n\n```js\napp.use(formidableMiddleware(opts));\n```\n\n`opts` are options which can be set to `form` in Formidable. For example:\n\n```js\napp.use(formidableMiddleware({\n  encoding: 'utf-8',\n  uploadDir: '/my/dir',\n  multiples: true, // req.files to be arrays of files\n});\n```\n\nFor the detail, please refer to the\n[Formidable API](https://github.com/felixge/node-formidable#api).\n\n## Events\n\n```js\napp.use(formidableMiddleware(opts, events));\n```\n\n`events` is an array of json with two field:\n\n| Field | Description |\n| ----- | ----------- |\n| `event` | The event emitted by the form of formidable. A complete list of all the possible events, please refer to the [Formidable Events](https://github.com/felixge/node-formidable#events) |\n| `action` | The callback to execute. The signature is `function (req, res, next, ...formidable_parameters)` |\n\nFor example:\n\n```js\nconst events = [\n  {\n    event: 'fileBegin',\n    action: function (req, res, next, name, file) { /* your callback */ }\n  }, \n  {\n    event: 'field',\n    action: function (req, res, next, name, value) { /* your callback */ }\n  }\n];\n```\n\n### Error event\n\nUnless an `error` event are provided by the `events` array parameter, it will handle by the standard `next(error)`.\n\n## Contribute\n\n```\ngit clone https://github.com/noraesae/express-formidable.git\ncd express-formidable\nnpm install\n```\n\nTo lint and test:\n\n```\nnpm test\n```\n\n## License\n\n[MIT](LICENSE)\n","readmeFilename":"README.md","users":{"biiu":true,"bool":true,"71emj1":true,"lonjoy":true,"jcarlos":true,"tonillo":true,"aeron_zh":true,"jmsherry":true,"chirag8642":true,"rocket0191":true,"ze25800000":true,"ww522413622":true,"ghostcode521":true,"pablo.tavarez":true}}