dosbox-interface
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

DOSBox interface

An interface for running dosbox commands via child_process in node.js application.

Installation

Use your favourite package manager:

  • npm: npm install dosbox-interface

System Dependencies

Requires DOSBox to be installed and that it can be called using the command dosbox or specify it's folder.

Usage

const BOX = require('dosbox-interface');
let box = BOX.DOSBox.Fromdir('C:\\your\\DOSBox\\Folder');

//set DOSBox configurations
const conf = {
    cpu: {
        cycles: '1000'
    },
    sdl: {
        windowresolution: '1024x640',
        output: 'opengl'
    }
};

//run DOSBox with command
box.runCommand(['echo hello dosbox'], { conf })
    .catch(error => {
        throw error
    })
    .then(
        info => {
            console.log(info)
        }
    )

Readme

Keywords

Package Sidebar

Install

npm i dosbox-interface

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

39.5 kB

Total Files

21

Last publish

Collaborators

  • xsro