Adds binary data to ZX Spectrum tape files.
npm start -- [options] input.bin [input2.bin ...]
sudo npm install -g jsbin2tap
jsbin2tap [options] input.bin [input2.bin ...]
npm install --save jsbin2tap
...and then from JS...
const fs = require('fs');
const tape = require('jsbin2tap');
...
tape.writeBytesBlock(buf, blockName, startAddress);
fs.writeSync(outputFile, tape.getBuffer());
Short | Long | description | Default |
---|---|---|---|
-o | --output | output TAP file | out.tap |
-a | --address | start address of binary file | 32768 |
-p | --append | append tap at end of file | false |
-h | --help | print usage information | false |
-v | --version | print version information | false |
s |