Socket
Book a DemoInstallSign in
Socket

bintotext

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bintotext

Turns binary to text

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

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...!

Keywords

binary

FAQs

Package last updated on 07 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.