easy-formdata
easy-formdata
is a module to parse form data easily
Usage
const expressParser isFile = ;const express = ;const app = ; app; app app;
Types
expressParser
is the middleware that parsers the formdata for express
isFile
returns true if the argument passed is a File Object
File
an interface having this properties
interface File /** the file name */ filename: string; /** the encoding of the file */ encoding: string; /** the mimetype of the file */ mimetype: string; /** the size of the file */ size: number; /** the data of the file */ data: Buffer;