koa2-formidable

koa2 middleware for formidable

Usage no npm install needed!

<script type="module">
  import koa2Formidable from 'https://cdn.skypack.dev/koa2-formidable';
</script>

README

GET

npm install koa2-formidable --save

API

const formidable = require('koa2-formidable')
const Koa = require('koa')
const app = new Koa()
app.use(formidable (opt))

opt is formidable options.

Use

let { body, files } = ctx.request

LICENSE

MIT