Pass in a string, array, Buffer, Data View, or Uint8Array, and get a Buffer back.
npm install to-buffer