bintotext

1.1.1 • Public • Published

bintotext

bintotext is a simple Node module for converting binary to ASCII.

Installation

npm i bintotext or npm i bintotext -g

Examples

Node

require("bintotext");
const binary = [ "01001000", "01100101", "01101100", "01101100", "01101111", "00100000", "01010111", "01101111", "01110010", "01101100", "01100100", "00101110", "00101110", "00101110", "00100001" ];

String.fromBinary(binary);

// Result: Hello World...!
const bintotext = require("bintotext");
const binary = [ "01001000", "01100101", "01101100", "01101100", "01101111", "00100000", "01010111", "01101111", "01110010", "01101100", "01100100", "00101110", "00101110", "00101110", "00100001" ];

bintotext(binary);

// Result: Hello World...!
const bintotext = require("bintotext");
const binary = [ "01001000", "01100101", "01101100", "01101100", "01101111", "00100000", "01010111", "01101111", "01110010", "01101100", "01100100", "00101110", "00101110", "00101110", "00100001" ];

bintotext.binaryToText(binary);

// Result: Hello World...!

CLI

bin-to-str 01001000 01100101 01101100 01101100 01101111 00100000 01010111 01101111 01110010 01101100 01100100 00101110 00101110 00101110 00100001

Result: Hello World...!

Readme

Keywords

Package Sidebar

Install

npm i bintotext

Weekly Downloads

0

Version

1.1.1

License

ISC

Unpacked Size

3.19 kB

Total Files

4

Last publish

Collaborators

  • erdi