I am building a command-line tool.
Users install it via: deno install https://raw.githubusercontent.com/velipso/foo
The tool includes a binary file in the repo, that it needs to be able to read. I thought I could do Deno.readFile(new URL('../path/to/file.bin', import.meta.url)), and that works when running locally, but fails when installed from GitHub.
Then I thought, I can import JSON files -- can I also import raw binary files?
Something like:
import fileBinary from '../path/to/file.bin';
console.log(fileBinary); // Uint8Array of the bytes
But that doesn't seem to work either.
How do I distribute a command-line tool that uses a binary file of data to operate?
Thanks for your help