Skip to content

v0.3.5

Choose a tag to compare

@github-actions github-actions released this 24 Jun 00:29
· 22 commits to main since this release

   🚀 Features

Plugin example

import { createFileParserMiddleware } from 'h3-formidable'

export default createFileParserMiddleware({
  getForm((form) => {
    form.use((self, options) => {
      // self === this === form
      console.log('woohoo, custom plugin');
      // do your stuff; check `https://github.com/node-formidable/formidable/tree/master/src/plugins` for inspiration
    })
  })
})
    View changes on GitHub