Socket
Socket
Sign inDemoInstall

koa-multer

Package Overview
Dependencies
26
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    koa-multer

Middleware for handling `multipart/form-data` for koa.


Version published
Weekly downloads
22K
increased by9.04%
Maintainers
1
Install size
1.38 MB
Created
Weekly downloads
 

Readme

Source

koa-multer

Multer is a node.js middleware for handling multipart/form-data for koa.
multer wrapper for koa's middleware.

NPM version NPM Downloads Build status Test coverage Dependency status License

Install

$ npm install --save koa-multer

Usage

=1.x, 100%, working with multer-v1.x and koa-v2.x.

const Koa = require('koa');
const route = require('koa-route');
const multer = require('koa-multer');

const app = new Koa();
const upload = multer({ dest: 'uploads/' });

app.use(route.post('/profile', upload.single('avatar')));

app.listen(3000);

=0.x, working with multer-v0.x(v0.1.8 is the latset version of v0.x) and koa-v1.x

var koa = require('koa');
var multer = require('koa-multer');

var app = koa();

app.use(multer({ dest: './uploads/'}));

app.listen(3000);

License

MIT

Keywords

FAQs

Last updated on 06 Aug 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc