I'm developing node server using koa.js
I have looked for some libraries for body parser.
And there are several kinds of koa body parser.
But I don't know what differences btw them including koa-body and koa-bodyparser.
Can you explain it?
Thank you in advance.
koa-body
now support koa version 2. The main difference now remains about file payload parsing. The koa-bodyparser
cannot parse files, i.e. multipart/form-data
.
Oh, I got it.
https://github.com/koajs/koa/wiki
koa-body supports koa v1, koa-bodyparser supports koa v2.
And former can parse file, but later can't.
Thanks.