cronshot-localCronShot 中间件
cronshot-local 是 CronShot 中间件,用来保存图片到本地文件系统。
安装
安装 CronShot
npm install cronshot
示例
var cronshot = require('cronshot'), middleware = { local: require('cronshot-local') }; // Local File Example // ------------------ // Takes a screenshot of sports.yahoo.com, // and saves the screenshot to the local file system // Save Local File Example cronshot.startCapturing({ 'url': 'http://sports.yahoo.com', 'path': __dirname, 'cronPattern': false, 'saveMiddleware': [middleware.local], }, function(err) { // optional callback function once all screenshots have been taken if (err) { console.error(err); } });
评论
better_errorsRack 中间件
BetterErrors取代了标准的 Rails错误提示页面,提供了更有用的错误提示页面。作为 Rack中间件,它可以在任何 Rack应用程序的 Rails外使用。特性完整的堆栈跟踪检查所有堆栈帧(强
better_errorsRack 中间件
0
express-jsonrpc2Express 中间件
Express.js的JSON-RPCversion2实现express-jsonrpc2是node.js上的express库的完整JSON-RPCversion2服务端实现,是express的中间件
express-jsonrpc2Express 中间件
0
NegroniWeb中间件
Negroni是Go开发的Http中间件,非常小,没有侵入性,鼓励使用ofnet/http处理程序。如果你喜欢Martini,又觉得它太过于复杂,那么Negroni非常适合你。入门安装Go并设置好 G
NegroniWeb中间件
0
express-jsonrpc2Express 中间件
Express.js 的 JSON-RPC version 2 实现express-jsonrpc2
express-jsonrpc2Express 中间件
0