ascii-hex

1.0.1 • Public • Published

ascii-hex

Get the hexadecimal value of an ASCII character

Build Status

Install

$ npm install --save ascii-hex

Usage

const hex = require('ascii-hex');
 
hex('A');
//=> '0x41'

API

hexValue(input)

Returns the hexadecimal value of the ASCII character

input

Type: string

The ASCII character you want to convert to hex.

License

MIT © Michael Wuergler

/ascii-hex/

    Package Sidebar

    Install

    npm i ascii-hex

    Weekly Downloads

    16

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • radiovisual