Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

node-canvas-nw-build

3.0.4 • Public • Published

node-canvas


NW.JS build module node-canvas from windows

Official repository node-canvas


Installation

$ npm install node-canvas-nw-build

Example

var Canvas = require('canvas-nw-build')
  , Image = Canvas.Image
  , canvas = new Canvas(200, 200)
  , ctx = canvas.getContext('2d');
 
ctx.font = '30px Impact';
ctx.rotate(.1);
ctx.fillText("Awesome!", 50, 100);
 
var te = ctx.measureText('Awesome!');
ctx.strokeStyle = 'rgba(0,0,0,0.5)';
ctx.beginPath();
ctx.lineTo(50, 102);
ctx.lineTo(50 + te.width, 102);
ctx.stroke();
 
console.log('<img src="' + canvas.toDataURL() + '" />');

install

npm i node-canvas-nw-build

Downloadsweekly downloads

3

version

3.0.4

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability