Browse Source

Export version number

Gaël Métais 4 năm trước cách đây
mục cha
commit
ed588ba43c
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      lib/index.js

+ 4 - 1
lib/index.js

@@ -2,6 +2,8 @@ var Q = require('q');
 
 var Runner = require('./runner');
 
+var packageJson = require('../package.json');
+
 
 var yellowLabTools = function(url, options) {
     'use strict';
@@ -39,4 +41,5 @@ var yellowLabTools = function(url, options) {
     return deferred.promise;
 };
 
-module.exports = yellowLabTools;
+module.exports = yellowLabTools;
+module.exports.version = packageJson.version;