1.0.6 • Published 5 years ago
baseconversor v1.0.6
��Convert between binary and decimal with this simple api.
binaries must be entered as a string. Decimals must be positive integers. Wrong values are returned as undefined with a message in the console.
let conversor = require('binaryConversor');
let d2b = conversor.d2b(13); g let b2d = conversor.b2d('1101');
console.log('d2b', d2b); // '1101' console.log('b2d', b2d); // 11