Browse Source

Merge pull request #300 from mojodna/version

Load version from package.json
v1.x
TJ Holowaychuk 12 years ago
parent
commit
ad3fc78f45
  1. 5
      lib/canvas.js

5
lib/canvas.js

@ -18,7 +18,8 @@ var canvas = require('./bindings')
, PNGStream = require('./pngstream') , PNGStream = require('./pngstream')
, JPEGStream = require('./jpegstream') , JPEGStream = require('./jpegstream')
, FontFace = canvas.FontFace , FontFace = canvas.FontFace
, fs = require('fs'); , fs = require('fs')
, package = require("../package.json");
/** /**
* Export `Canvas` as the module. * Export `Canvas` as the module.
@ -30,7 +31,7 @@ var Canvas = exports = module.exports = Canvas;
* Library version. * Library version.
*/ */
exports.version = '1.0.0'; exports.version = package.version;
/** /**
* Cairo version. * Cairo version.

Loading…
Cancel
Save