bin-to-js
v1.0.15
Published
Converts a binary file to a JavaScript file which stores and exports the data as a Uint8Array
Readme
bin-to-js
- Simple CLI Node script that stores the data from a binary file as a Uint8Array in a JavaScript source.
- Loading binaries from disk can be a pain in some environments; this allows for easy import.
- You do pay overhead: the resulting file is ~2-4x as large.
Installation
npm i -g bin-to-jsUsage
node bin-to-js filename.ext