Get the hexadecimal value of an ASCII character
$ npm install --save ascii-hex
const hex = require('ascii-hex');
hex('A');
//=> 0x41
Returns the hexadecimal value of the ASCII character
Type: string
The ASCII character you want to convert to hex.
- ascii-decimal Get the decimal value of an ASCII character
MIT © Michael Wuergler