This MR seemingly adds quite a lot but it's not really a huge change of the codebase and the tests are working
- I've removed unnecessary
safe-bufferdependency. It didn't add anything useful which cannot be done by standard
Buffer. Browserify can deal with standard
- Rewrote all
testfiles to Typescript which also discovered some potential issue so I had to add some more null checks and throwed Errors.
- Added a build setup so package is built for both commonjs and ESM before pack/publish
- Adjusted some info in