node js module to implement branchmetrics