Node.js Web 开发框架大全《中间件篇》
这篇文章与大家分享优秀的 Node.js 中间件模块。Node 是一个服务器端 JavaScript 解释器,它将改变服务器应该如何工作的概念。它的目标是帮助程序员构建高度可伸缩的应用程序,编写能够处理数万条同时连接到一个(只有一个)物理机的连接代码。
JSGI
- commonlogger - A logger of HTTP requests.
- compact - Join and compress frontend javascript.
- compress - Gzip compresses (using node-compress) the response when appropriate based on request headers.
- conditional - Handles conditional HTTP requests (If-Modified-Since, etc.)
- contentlength - Sets Content-Length header.
- csrf - Checks HTTP request for possible cross-site request forgery, flags dangerous requests.
- extension - Transforms .extension to a RESTful Accept header
- head - Handles HEAD requests (stripping body).
- http-params - Converts HTTP parameters http- to headers.
- media - Performs content type negotiation (per RFC2616) delegating to appropriate media handler.
- redirect - Redirects to other URLs
- rewriter - Rewrites defined paths to other paths.
- routes - Simple RegExp based router
- session - Session manager with pluggable storage handling
- static - Static file handler using asynchronous streaming.
- transporter - Share modules with browser, works RequireJS and Yabble
- urlmap - Maps to different apps by path/URL
- xsite - Handles JSONP, window.name, and cross-origin XHR (CORS).
Connect
- connect-jade-static - Serving jade files as static html
- aspa-express - Simple, dependency-free middleware for serving assets packaged with aspa.
- browserify-middleware - Middleware for serving up node.js code with requires to the client.
- bundle-up — A simple asset manager middleware for managing css and js files.
- client-certificate-auth - Basic TLS/SSL client certificate authentication
- connect_facebook - Facebook session support for Connect
- connect_json - Support for parsing JSON requests and sending JSON responses in Connect
- connect-airbrake — Airbrake error reporting auto-setup middleware
- connect-assetmanager - Asset manager for Connect for handling CSS/JS files
- connect-assets - Compiled CSS/JS asset pipeline inspired by Rails 3.1
- connect-auth — Connect authentication middleware, provides out-of-the-box implementations of HTTP (Basic & Digest), Twitter, Facebook, BitBucket, Janrain, Yahoo, Sina, Google, OAuth (1.0 server), Github and a couple of others....
- connect-compiler — Development middleware to dynamically recompile derived files at serve-time.
- connect-dojo — Connect middleware exposing the Dojo Toolkit
- connect-domain — Asynchronous error handler for Connect
- connect-force-domain — force all visitors onto a single domain
- connect-gridfs — GridFS file server for Connect
- connect-http-signature — middleware wrapper for Joyent's HTTP Signature reference implementation
- connect-proxy — Retrieve originating ip/host values when proxying to your connect app
- connect-roles — Dynamic roles based authorization for connect/express, designed to work well with passport and everyauth.
- connect-rpx - Use RPX with Node.js and Connect
- cookie-sessions — Secure cookie-based session store
- dispatch — Regular expression URL dispatcher
- everyauth — Connect authentication and authorization middleware, modular, configurable, supporting password, OpenId, Google, OAuth, Twitter, LinkedIn, Yahoo, Readability, Dropbox, Justin.tv, Vimeo, Tumblr, OAuth2, Facebook, GitHub, Instagram, Foursquare, Box.net, LDAP
- express-chromeframe — Dead simple middleware to enable chromeframe on connect/express applications.
- express-errors — Simple error handling
- facebook-wrapper — Basic wrapper to the Facebook API, designed to work with Connect and Express
- form2json — Decoder for form-urlencoded data that supports arrays of nested objects
- formaline - full-featured module for handling form POSTs/PUTs (multipart/form-data, application/x-www-form-urlencoded ) and fast parsing of file uploads, it speaks JSON and it is also ready for use with middlewares like connect.
- http-accept — Connect compatible middleware that parses HTTP Accept header fields
- merge-js — Simple connect middleware for merging multiple js files and uglifying the result.
- mincer — direct Sprockets assets manager port, with middleware for connect/express
- minj — Serve minified javascript files with Connect/Express
- monomi — Provides tools for handling tablet, touch, and mobile browsers
- node_signedcookies — Extends Express's cookieParser() to read/write signed cookies.
- node-facebook-session-cookie — eats facebook cookies from client FB.login() and makes the session available as req.fb_session
- passport — Simple, modular, and unobtrusive authentication framework for Connect and Express.
- pound — Pound is an high-level interface for Piler - The Awesome Asset Manager for Node.js
- quip — Chainable HTTP response API
- resource-router — A resource-oriented router to replace the default routing in express
- resty — Quickly and simply build REST APIs with this connect middleware
- session-web-sockets — Pass session to (Socket.IO-node) in a secure manner. Originally forked from bmeck/session-web-sockets
- session.js — super simple session middleware for node.js, even has optional "magic" sessions which monkey patch the httpServer with one line!
- Shrinkroute - Named routes for Express. Helps you in achieving DRY routes!
- trust-reverse-proxy - Trust (SSL) connections coming from (a) specific reverse prox(y)(ies)
Other middleware
- bouncy — bounce HTTP requests around for load balancing or as an HTTP host router
- buffet — Performance-oriented static file server & middleware
- dota2api — Dota2 api wrapper written in node.js
- eventpipe — Provides an Event Pipe with the same API as node.js' EventEmitter
- exedra — Express routes & functions loader
- express-debug — Express middleware that provides a debugging/object browser panel injected into your application.
- express-couch-proxy — CouchDB reverse proxy middleware for Express
- express-twitter — Twitter-specific OAuth support
- googleclientlogin — Log in to Google services using CllientLogin method
- http-auth — Node.js package for HTTP basic and digest access authentication.
- http-auth2 — HTTP basic authentication that supports multiple logins.
- http-proxy-selective — Proxy server replace some remote static files with local ones
- middler — A middleware runner which can itself function as middleware, with routing
- node-evented — Extended EventEmitter
- node-file-cache - Very small file cache for node.js http server.
- node-force-domain — Force multiple domains to redirect (301) to a default one in your Express project.
- Node-Http-Rewrite-Proxy — This module proxies and rewrites HTTP requests of all types. For this you can, if you want, use regular expressions.
- node-reverse-proxy — A reverse proxy which forwards incoming HTTP requests to multiple back-end HTTP servers based upon HTTP Host header.
- node-varnish — Connector for the Varnish cache telnet management protocol
- notp — NodeJS One Time Password authentication, compatible with Google Authenticator
- onion — Simple and flexible middleware stack that enables you to add a middleware layer to just about anything
- protobuf_for_node — In-process JS-to-C++ communication using protocol buffer services
- protobuf — A fork of protobuf_for_node with an npm package.
- proxy-tamper — A proxy server that allows for the tampering of requests and responses.
- socket-logger — JSON-parsable logs for Socket.IO that can push log messages to a client over Socket.IO.
- subproxy - subdomain proxy (for example to proxy www.google.com with www.google.com.localhost)
- proxima - HTTP/TLS(HTTPS) reverse proxy forwards incoming requests to upstream servers based on Host header or SNI host hint.
- express-cors - Simple middleware for adding CORS functionality to your expressjs app.
本文来源:Node.js 入门手册:Web 框架大全《中间件篇》
编译来源:梦想天空 ◆ 关注前端开发技术 ◆ 分享网页设计资源
Node.js Web 开发框架大全《中间件篇》的更多相关文章
- Node.js Web 开发框架大全《路由篇》
这篇文章与大家分享优秀的 Node.js 路由(Routers)模块.Node 是一个服务器端 JavaScript 解释器,它将改变服务器应该如何工作的概念.它的目标是帮助程序员构建高度可伸缩的应用 ...
- Node.js Web 开发框架大全《静态文件服务器篇》
这篇文章与大家分享优秀的 Node.js 静态服务器模块.Node 是一个服务器端 JavaScript 解释器,它将改变服务器应该如何工作的概念.它的目标是帮助程序员构建高度可伸缩的应用程序,编写能 ...
- KoaHub.js是基于 Koa.js 平台的 Node.js web 快速开发框架
koahubjs KoaHub.js -- 基于 Koa.js 平台的 Node.js web 快速开发框架.可以直接在项目里使用 ES6/7(Generator Function, Class, A ...
- 基于 Koa.js 平台的 Node.js web 快速开发框架KoaHub.js demo 可安装
KoaHub.js demo KoaHub.js KoaHub.js -- 基于 Koa.js 平台的 Node.js web 快速开发框架.可以直接在项目里使用 ES6/7(Generator Fu ...
- KoaHub.js -- 基于 Koa.js 平台的 Node.js web 快速开发框架之koahub-yilianyun
koahub-yilianyun 微信易联云打印机接口 koahub-yilianyun易联云打印机node接口 Installation $ npm install koahub-yilianyun ...
- node.js Web应用框架Express.js(一)
什么是Express.js Express 是一个简洁而灵活的 node.js Web应用框架, 提供一系列强大特性帮助你创建各种Web应用,提供丰富的HTTP工具以及来自Connect框架的中间件随 ...
- Node.js web快速入门 -- KoaHub.js
介绍 KoaHub.js -- 基于 Koa.js 平台的 Node.js web 快速开发框架.可以直接在项目里使用 ES6/7(Generator Function, Class, Async & ...
- node.js Web应用框架Express入门指南
node.js Web应用框架Express入门指南 作者: 字体:[增加 减小] 类型:转载 时间:2014-05-28 我要评论 这篇文章主要介绍了node.js Web应用框架Express入门 ...
- Node.js + Web Socket 打造即时聊天程序嗨聊
前端一直是一块充满惊喜的土地,不仅是那些富有创造性的页面,还有那些惊赞的效果及不断推出的新技术.像node.js这样的后端开拓者直接将前端人员的能力扩大到了后端.瞬间就有了一统天下的感觉,来往穿梭于前 ...
随机推荐
- 在Windows平台上安装Node.js及NPM模块管理
1. 下载Node.js官方Windows版程序:http://nodejs.org/#download 从0.6.1开始,Node.js在Windows平台上提供了两种安装方式,一是.MSI安 ...
- 开发高效的Tag标签系统数据库设计
需求背景 目前主流的博客系统.CMS都会有一个TAG标签系统,不仅可以让内容链接的结构化增强,而且可以让文章根据Tag来区分.相比传统老式的Keyword模式,这种Tag模式可以单独的设计一个Map的 ...
- Java多线程系列--“JUC原子类”01之 框架
根据修改的数据类型,可以将JUC包中的原子操作类可以分为4类. 1. 基本类型: AtomicInteger, AtomicLong, AtomicBoolean ;2. 数组类型: AtomicIn ...
- Deep learning:四十九(RNN-RBM简单理解)
前言: 本文主要是bengio的deep learning tutorial教程主页中最后一个sample:rnn-rbm in polyphonic music. 即用RNN-RBM来model复调 ...
- PHP函数处理函数实例详解
1. call_user_func和call_user_func_array: 以上两个函数以不同的参数形式调用回调函数.见如下示例: <?php class AnotherTestClass ...
- Java实时读取日志文件
古怪的需求 在实习的公司碰到一个古怪的需求:在一台服务器上写日志文件,每当日志文件写到一定大小时,比如是1G,会将这个日志文件改名成另一个名字,并新建一个与原文件名相同的日志文件,再往这个新建的日志文 ...
- 纯Shading Language绘制HTML5时钟
今天是2014年的最后一天,这个时刻总会让人想起时钟,再过几个小时地球人都要再老了一岁,于是搞个HTML5版的时钟就是我们今天要完成的任务,实现HTML5的时钟绘制一般会采用三种方式,第一种采用CSS ...
- C# 通过反射来动态创建泛型类型
C# 通过反射来动态创建泛型类型与创建普通类型的区别在于:泛型参数的处理 创建泛型类型存在三种情况: 第一种:知道泛型类型,但需要动态指定泛型参数: 第二种:知道泛型参数,但需要动态创建指定参数的泛型 ...
- git入门到熟练使用
最近以为接触ios开发,所以对git也产生了一点兴趣.所以在网上搜索资料开始学习,但大部分都是没用的copy的文章,有一个还不错的,推荐给大家 http://www.liaoxuefeng.com/w ...
- 数据结构(C语言第2版)----时间复杂度和单链表
马上要到校招了,复习下相关的基础知识. 时间复杂度是什么? 官方解释: 算法的执行时间需要依据算法所编制的程序在计算机上于运行时所消耗的时间来度量.在算法中可以使用基本的语句的执行次数作为算法的时间复 ...