bitwise icon indicating copy to clipboard operation
bitwise copied to clipboard

Smart "Convert To" Function

Open FlorianWendelborn opened this issue 6 years ago • 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

FlorianWendelborn avatar Apr 23 '18 19:04 FlorianWendelborn