node.js - nodejs convert string like php pack function -
i trying convert string ascii
in php:
>>> pack('h*', '123') => "\x120"
how same thing in nodejs?
i trying use https://github.com/peze/node-pack
package pack result following :
> pack.pack('h*', '123') outputpos=2 <buffer 12 30>
Comments
Post a Comment