Closed aaricpittman closed 6 years ago
Why does this code, https://github.com/aaricpittman/yarn-pack-test/blob/master/stand-alone.js, corrupt the image files when the files are read with the 'binary' encoding and fine when I don't specify the encoding?
tar-stream defaults to utf8 strings if you pass the file body as a string. pass it as a buffer instead
Why does this code, https://github.com/aaricpittman/yarn-pack-test/blob/master/stand-alone.js, corrupt the image files when the files are read with the 'binary' encoding and fine when I don't specify the encoding?