I\'m writing an app in node.js, and see that I can do things like this:
var buf = new Buffer(\"Hello World!\") console.log(buf.toString(\"hex\")) console.log
The official node.js documentation for Buffer is the best place to check for something like this. As previously noted, Buffer currently supports these encodings: ascii, utf8, utf16le/ucs2, base64, binary, and hex.
Buffer
ascii
utf8
utf16le
ucs2
base64
binary
hex