exit
Exit the current running game and the emulator. Remove the canvas element used by the emulator if needed.
const nostalgist = await Nostalgist.nes('flappybird.nes')
nostalgist.exit()const nostalgist = await Nostalgist.nes('flappybird.nes')
// the canvas element will not be removednostalgist.exit({ removeCanvas: false })Arguments
Section titled “Arguments”-
Section titled “options”optionstype:
{ removeCanvas: boolean }
Section titled “removeCanvas”removeCanvastype:
booleandefault:trueIf it is
true, the canvas element will be removed. Otherwise it will be preserved.