node-frotz

0.5.0 • Public • Published

node-frotz

Node integration for frotz

const frotz=require('node-frotz');
var dint = new frotz.DFrotzInterface('./ifroot/dfrotz','./ifroot/ZORK1.DAT',"./ifroot/zk1.sav",frotz.ZorkFilter);
dint.iteration("look",(error,gameoutput)=>{
    if(error)
    {
    console.log(error);
    }
    else
    {
    console.log(gameoutput);
    }
    process.exit(0);
});

Installation

This module requires the dfrotz binary. Please refer to https://github.com/DavidGriffith/frotz for instruction.

$ npm install node-frotz

Readme

Keywords

Package Sidebar

Install

npm i node-frotz

Weekly Downloads

12

Version

0.5.0

License

GPL-3.0

Last publish

Collaborators

  • lbenini