Hex to binary npm. as hex(0): 0000 when padlength is 4.