Coverage
overview
100
/Users/sebastiansandqvist/Documents/Sites & Projects/apps/modules/s-binary/
index.js
m
100%
5
5
0
/Users/sebastiansandqvist/Documents/Sites & Projects/apps/modules/s-binary/index.js
100%
5
5
0
Line
Hits
Source
1
1
var binary = module.exports = {};
2
3
1
binary.toInt = function(str) {
4
4
return parseInt(str, 2);
5
};
6
7
1
binary.toHex = function(str) {
8
2
return parseInt(str, 2).toString(16);
9
};