Skip to content

Instantly share code, notes, and snippets.

@MD4
Created January 29, 2018 10:00
Show Gist options
  • Save MD4/6c6ec0fb6c2aa72f26f1eddfb9c1278e to your computer and use it in GitHub Desktop.
Save MD4/6c6ec0fb6c2aa72f26f1eddfb9c1278e to your computer and use it in GitHub Desktop.
Hex string to ascii, feat @PaGury
const parseHex = hexString => hexString
.match(/.{1,2}/g)
.map(hex => String.fromCharCode(parseInt(hex, 16)))
.join('');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment