Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including pcejs-ibmpc with all npm packages installed. Try it out:

var pcejsIbmpc = require("pcejs-ibmpc")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

pcejs-ibmpc v0.1.8

IBM PC/XT emulator for the browser


a classic pc emulator for the browser

getting started

given a commonjs module

npm init

install dependencies

npm install --save pcejs-ibmpc pcejs-util

add some js index.js

var ibmpc = require('pcejs-ibmpc')
var utils = require('pcejs-util')

// add a load progress bar. not required, but good ux
var loadingStatus = utils.loadingStatus(document.querySelector('.pcejs-loading-status'))

  'arguments': ['-c','pce-config.cfg','-r', '-g','vga'],
  autoloadFiles: [
  print: console.log.bind(console),
  printErr: console.warn.bind(console),
  canvas: document.querySelector('.pcejs-canvas'),
  monitorRunDependencies: function (remainingDependencies) {

add some html index.html

<!DOCTYPE html>
    <style type="text/css">
    .pcejs {
      margin-left: auto;
      margin-right: auto;
      text-align: center;
      font-family: sans-serif;
      /* the canvas *must not* have any border or padding, or mouse coords will be wrong */
      border: 0px none;
      padding: 0;
    .pcejs-container { margin-top: 32px }
    <div class="pcejs pcejs-container">
      <div class="pcejs pcejs-loading-status">Downloading...</div>
      <div class="pcejs">
        <canvas class="pcejs pcejs-canvas" oncontextmenu="event.preventDefault()"></canvas>
    <script type="text/javascript" src="bundle.js"></script>

add some files

curl -O

grab the extension rom file from the npm package

cp node_modules/pcejs-ibmpc/ibmpc-pcex.rom ./ibmpc-pcex.rom

bundle it with browserify

npm install -g browserify@4.x
browserify index.js \
  --noparse="node_modules/pcejs-ibmpc/lib/pcejs-ibmpc.js" \
  > bundle.js

serve it up

npm install -g http-server
open http://localhost:8080
http-server .


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free