bower-locker-common.js
function getDependency(filepath) {
    var bowerInfoStr = fs.readFileSync(filepath, {encoding: 'utf8'});
    var bowerInfo = JSON.parse(bowerInfoStr);
    return mapDependencyData(bowerInfo);
}
function getDependency(filepath) {
    var bowerInfoStr = fs.readFileSync(filepath, {encoding: 'utf8'});
    var bowerInfo = JSON.parse(bowerInfoStr);
    return mapDependencyData(bowerInfo);
}
function getDependency ( filepath ) { var bowerInfoStr = fs . readFileSync ( filepath , { encoding : 'utf8' } ) ; var bowerInfo = JSON . parse ( bowerInfoStr ) ; return mapDependencyData ( bowerInfo ) ; }
Function to read and return the specific metadata of a bower component
@param {String} filepath Filepath pointing to the JSON metadata
@returns {Object} Returns dependency metadata object (dirName, commit, release, src, etc.)
Function to read and return the specific metadata of a bower component