bitwise
bitwise copied to clipboard
Smart "Convert To" Function
Figures out if input is string
, integer
, buffer
, bits
and converts them.
bitwise.convert([0,0,1,0,1,0,1,0], 'byte') === 42
bitwise.convert(Buffer<42>, 'byte') === 42