Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

lipo-express

0.0.5 • Public • Published

lipo-express

build status code coverage code style styled with prettier made with lass license

Lipo middleware for Express and Connect

Table of Contents

Install

npm:

npm install lipo-express

yarn:

yarn add lipo-express

Usage

const multer = require('multer');
const bytes = require('bytes');
const express = require('express');
const lipoExpress = require('lipo-express');
 
const app = express();
 
const upload = multer({
  limits: {
    fieldNameSize: bytes('100b'),
    fieldSize: bytes('1mb'),
    fileSize: bytes('5mb'),
    fields: 10,
    files: 1
  }
});
app.use(upload.single('input'));
 
// use lipo's express middleware
app.use(lipoExpress);
 
// start server
app.listen(3000);

Contributors

Name Website
Nick Baugh http://niftylettuce.com/

License

MIT © Nick Baugh

Install

npm i lipo-express

DownloadsWeekly Downloads

8

Version

0.0.5

License

MIT

Unpacked Size

8.48 kB

Total Files

11

Last publish

Collaborators

  • avatar
  • avatar