Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

node-retro

0.6.13 • Public • Published

Stories in Ready node-retro Build Status

Use node-retro to run libretro cores from within node. This is used by gametime-player to load cores for emulation.

DESIGN

node-retro is designed to be minimilistic to let users decide how they want to use libretro cores. Methods should be bound by .on'ing them.

One lingering concern is how to store binary data in Javascript. There are two implementations of basically the same thing available:

  • node's Buffer
  • v8's ArrayBuffer

Both have been used in node-retro for different purposes. When a file is probably going to be loaded/accessed it will expect a node Buffer (so the fs commands work without fixes). During video/audio callbacks ArrayBuffer is used because they are expected by the two dominant APIs:

  • AudioContext
  • WebGL

EXAMPLE

For an example implementation of node-retro, look at my repo gametime-player. It uses Web APIs to run libretro cores.

Keywords

none

install

npm i node-retro

Downloadsweekly downloads

24

version

0.6.13

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability