connect-favicon-canvas
connect middleware for generating server-side images and icons with node-canvas.
Install:
npm install connect-favicon-canvas
Example:
var connect = faviconCanvas = generator rand app; { return arr ~~Math*arrlength ; }; //draw an image using the canvas2d API { var ctx = canvas; ctxfillStyle = ; var border = 8 sqSize = canvaswidth - border*2; ctx; ; }; //start a connect server that servers the generative /favicon.ico app = ;
Released under MIT License, created by Kyle Phillips