buffer-to-object
This function will get a buffer object and return an object with hex string, number array, length of data. {Hex: (string), Int: (number[]), Len: (number)}.
to-length
Converts value to an integer suitable for use as the length of an array-like object.
to-num
Converts the given value to a number.