diff --git a/lib/canvas.js b/lib/canvas.js index 1904c46..b2d09e0 100644 --- a/lib/canvas.js +++ b/lib/canvas.js @@ -18,7 +18,8 @@ var canvas = require('./bindings') , PNGStream = require('./pngstream') , JPEGStream = require('./jpegstream') , FontFace = canvas.FontFace - , fs = require('fs'); + , fs = require('fs') + , package = require("../package.json"); /** * Export `Canvas` as the module. @@ -30,7 +31,7 @@ var Canvas = exports = module.exports = Canvas; * Library version. */ -exports.version = '1.0.0'; +exports.version = package.version; /** * Cairo version.