1.0.1 • Published 8 years ago
ascii-hex v1.0.1
ascii-hex
Get the hexadecimal value of an ASCII character
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