convert a buffer (or string) to a Uint8Array
npm install buffer-to-uint8arrayconvert a buffer (or string) to a Uint8Array
`` js`
var tou8 = require('buffer-to-uint8array');
var buf = new Buffer('whatever');
var a = tou8(buf);
console.log(a.constructor.name);
console.log(a);
` js`
var tou8 = require('buffer-to-uint8array')
Convert buf, a Buffer or string to a Uint8Array.
If buf is already a Uint8Array, it will be returned.
With npm do:
```
npm install buffer-to-uint8array
MIT