Can We Take It That This Project Is Dead ?
I came to formidable after failing to get multer, parse-formdata and other alleged FormData parsers to work for me. You may be entertained to know that formidable fared no better. And that's after all the hassle of just getting it installed and visible to my project. (It was no use doing the conventional install, i.e. npm install -g formidable. The "installed" module was still unknown to the app. Found online that npm install -d formidable would get it in.) I took the example code and ran it in my app. But of course this did nothing to check the fields and values in my uploaded form. If anything, it tried to send them all back to where they came from. Or would have if there hadn't been a CORS interrupt.
I take it from the date of the last update to this GitHub space that formidable is now dead. I sure hope so.
First of all, welcome to Open Source (maintenance) struggle.
npm install -g formidable
Installs globally - the -g flag the short for --global.
Found online that
It's the basic and initial thing to learn the npm first when start doing anything with nodejs/javascript and etc. Not attacking you, just obvious.
The -d flag is for debug - just more information while installing it.
If anything, it tried to send them all back to where they came from.
Sounds ridiculous. But anyway, example code would good to try to help you.