binary-tools.js eases the task of dealing with raw binary data by using a simple interface built upon conventions you are likely to be already familiar with and a extensive list of real-world types.
This software is available under a range of open-source licenses - meaning that after buying it you can have full access to its source code and deal with it with all the freedom granted by those licenses, including developing it yourself and sharing your work with the world.
Using typed arrays for parsing binary data may be good for reading and writing a few bytes, but if you are working with serious software that handle lots of data on time-critical missions you need more than that. binary-tools.js is built for safety and speed, with a API that suits both reading and writing a few bytes of structured data or huge streams of bytes, as in the case of media files and AI.
Real life applications need way more than the common types supported by standard libraries - binary-tools.js have native support for huge integers, not-so-common types used in media files, novel data types used in AI development and cryptic types used on legacy software and hardware - all using the same codebase.
While the source code of this software is developed using the latest patterns and features of present-day JavaScript, it is built so that it may be compiled/transpiled to work in any environment with JavaScript support, including extremely outdated engines like IE6.
binary-tools.js relies on standard math (and some bit shifting) to perform all of its operations. It is blazing fast, safe, and best of all, clear on its approach to reading and writing binary data. All parsers for the supported types (integers, BigInts, floating point numbers, single-byte character encodings, UTF-8, UTF-16 and UTF-32 strings) are stand-alone classes that perform their tasks using clear language, well defined steps and very little language-specific features (or none at all), meaning that you can always be absolutely sure about whats going on under the hood, and also that porting any of its functionality to other languages or environments, for example, should be as easy as copying, pasting and changing the syntax.
There is no such thing as "enough" when it comes to testing. No release comes until the source code is 100% tested - lines, functions, branches, everything must be 100%. If I'm able to test all possible inputs, I'll do it. If I'm not able to test all possible inputs, I'll sample the most inputs I can, always using diverse and reliable sources. Adding tests is a continuous process, and if a bug is found (usually interface-related), I'm proud to show both the bug and the bugfix to the world.
binary-tools: JavaScript binary tools for any browser or environment.
Copyright (C) 2023 Rafael da Silva Rocha
This software is released under the Creative Commons CC-BY-NC-ND-4.0 license (very restrictive, no commercial use). You may purchase a version of this software released under the LGPL for your freedom and convenience.
No sources included, licensed as CC-BY-ND-4.0 for commercial use.
Comes multi-licensed with GPL-2.0 and GPL-3.0
Comes multi-licensed with LGPL-2.1, LGPL-3.0, MPL-2.0 and GPLs
Multi-licensing ensures that you can choose the license that works best for you.
The prices are just for reference. You may use your own currency to pay me as long as the value is similar to the reference price. I accept some cryptocurrencies. If you have any doubt or are having trouble with the payment methods listed above, email me at [email protected] and we will find a solution.
You will receive a download link as soon as I confirm your payment.
Licenses apply to specific versions.
Last reviewed in 2024-12-19
Talk to me: [email protected]
I may be available to work on your project.