./minesweeper.js <rows> <columns> <bombs>
Then, at the prompt:
<row> <column>
to reveal a square, or:
f <row> <column>
to flag a square.
To win, correctly place all flags.
Placing all flags with at least one incorrect will result in a loss, as will revealing a bomb tile.