Explorar o código

Export version number

Gaël Métais %!s(int64=4) %!d(string=hai) anos
pai
achega
ed588ba43c
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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;