vorto.js
function packageVersion(repo) {
    var location = repo ? path.join(repo, 'package.json') : './package.json';
    var pack = require(location);
    return pack['version'];
}
function packageVersion(repo) {
    var location = repo ? path.join(repo, 'package.json') : './package.json';
    var pack = require(location);
    return pack['version'];
}
function packageVersion ( repo ) { var location = repo ? path . join ( repo , 'package.json' ) : './package.json' ; var pack = require ( location ) ; return pack [ 'version' ] ; }
Load the version from package.json

@param {string} repo
Load the version from package . json