node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…

autoscale-canvas

Retina-enable an HTML canvas

Autoscale-canvas

Retina-enable an HTML canvas according to devicePixelRatio.

$ component install component/autoscale-canvas
var autoscale = require('autoscale-canvas');
autoscale(document.querySelector('canvas'));

MIT