busboy-promise
Promisified multipart collection using Busboy
Usage
npm install busboy-promise
Assume req
is a request object. options
is an optional object to pass additional options to Busboy.
var busboyPromise = ; ;
parts
is an object with two properties:
fields: A hashmap of fields. Property names are the field names. Values are objects with the original Busboy event arguments:
value: /* the value */ isNameTruncated: /* whether the name is truncated */ isValueTruncated: /* whether the value is truncated */ encoding: /* the encoding */ mimeType: /* the MIME type */
files: A hashmap of files. Property names are the field names. Values are object with the original Busboy event arguments:
file: /* the file stream */ filename: /* the original filename */ encoding: /* the encoding */ mimeType: /* the MIME type */