b2tconverter is a nodejs package to convert binary to text and text to binary with just one line of code.
npm i b2tconverter --save
Binary to text conversion:
var binary = require('b2tconverter');
console.log(binary.binary("Z"));
Text to binary conversion:
var text = require('b2tconverter');
console.log(text.text("01011010"));
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.