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

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -