HttpBody parsing class library -- fc body
npm install fc-body
//Promise object
const fc_body = require('fc-body');
let body = new fc_body({isAutoSaveFile: true, savePath: __dirname+"/upload"});
let post = '';
http.createServer(async (req,res) => {
try {
post = await body.getBody(req);
console.log(post);
} catch (e) {
console.log(e);
}
});