FlorianWendelborn/bitwise

Smart "Convert To" Function

Opened this issue · 0 comments

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