Completely rewrite the package so it isn't quite so hopelessly inefficient in terms of speed or memory usage.
Use ES6 modules now; use rollup to export all three of an ES6 module, a plain old CommonJS module and an IIFE suitable for use in the web browser. Should fix #6.
Uint8Array
s, notArrayBuffer
s.test-data
directory.