Nodejs Binary String to décimal Number

var digit = parseInt(binary, 2);
Ill Ibex