swint-middleware
Essential expressJS middlewares and general middleware loader for Swint
Last updated 9 months ago by knowre .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install swint-middleware 
SYNC missed versions from official npm registry.

swint-middleware

Greenkeeper badge Essential expressJS middlewares and general middleware loader for Swint

Warning: This is not the final draft yet, so do not use this until its official version is launched

Installation

$ npm install --save swint-middleware

Loader

Options

  • dir : String, default: path.dirname(require.main.filename)
  • walkOption : Object, default: { ext: 'js' }

Usage

var middlewares = loader({
	dir: path.join(__dirname, 'middlewares')
}); // { middlewareA: [Function], middlewareB: [Function], ... }

Middlewares

Usage

app.use(myMiddleware(options));
  • myMiddleware() (not myMiddleware itself) gets three arguments, which is req, res, next.

Current Tags

  • 1.1.11                                ...           latest (9 months ago)

31 Versions

  • 1.1.11                                ...           9 months ago
  • 1.1.10                                ...           2 years ago
  • 1.1.9                                ...           2 years ago
  • 1.1.8                                ...           2 years ago
  • 1.1.7                                ...           2 years ago
  • 1.1.6                                ...           3 years ago
  • 1.1.5                                ...           3 years ago
  • 1.1.4                                ...           3 years ago
  • 1.1.3                                ...           3 years ago
  • 1.1.2                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
  • 0.1.12                                ...           4 years ago
  • 0.1.11                                ...           4 years ago
  • 0.1.10                                ...           4 years ago
  • 0.1.9                                ...           4 years ago
  • 0.1.8                                ...           4 years ago
  • 0.1.7                                ...           4 years ago
  • 0.1.6                                ...           4 years ago
  • 0.1.5                                ...           4 years ago
  • 0.1.4                                ...           4 years ago
  • 0.1.3                                ...           4 years ago
  • 0.1.2                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 32
Dependencies (10)
Dev Dependencies (3)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |