Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

amrhextotext

voltican220ISC1.1.1

Conversor de Hexadecimal a Texto

conversor, hexadecimal, texto, string

readme

amrHextoText

Simple converter text to hex and hex to text

Installation

npm

npm i amrhextotext --save

git

git clone https://github.com/voltican/amrHextoText.git

Usage

const text = 'test text'
const hex = '746573742074657874'

const convert = require('amrhextotext')

//convert text to hex
let hexSample = convert.textToHex(text)
//Result: 746573742074657874

//Convert hex to text
let textSample = convert.hexToUtf8(hex)
//Result: test text

License

This software is licensed under the MIT License.