binEncode

Convert string chars to binary unicode (16 digits)

Install

Install all functions of strman

yarn add strman

or just the binEncode function

yarn add strman.binencode

Usage

import { binEncode } from 'strman'
// OR
import binEncode from 'strman.binencode'
Parameters:
Name Type Description
value String

Value to encode

Source:
Returns:

String in binary format.

Type
String
Example
binEncode('strman')
// => '00000000011100110000000001110100000000000111001000000000011011010000000001100001'