1.0.1 • Published 8 years ago

ascii-hex v1.0.1

Weekly downloads
22
License
MIT
Repository
github
Last release
8 years ago

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