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 single-market-robot-simulator-savezip with all npm packages installed. Try it out:

var singleMarketRobotSimulatorSavezip = require("single-market-robot-simulator-savezip")

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

single-market-robot-simulator-savezip v2.0.0

saves config and logs of an array of simulations as a .zip file


Saves the configuration and logs of an array of single-market-robot-simulator Simulations, in a zip file using jszip and filesaver.js-npm.

Used by robot-trading-webapp

Useful only on the browser.

On a node.js server, single-market-robot-simulator automatically saves multiple csv files without this module.


npm i single-market-robot-simulator-savezip -S


This module exports a single function,

 const saveZip = require('single-market-robot-simulator-savezip');


 saveZip({Array of single-market-robot-simulator.Simulation} sims, callback)


callback(blob), where blob is a representation of zipped folder data for the simulations,

or without a callback, returns nothing, and asynchronously exports a .zip file from browser-memory, particularly an array of multiple single-market-robot-simulator,Simulations is exported as a .zip file containing a directory for each Simulation, with files for the Simulatin config.json and data logs in .csv format.

Example (from robot-trading-webapp: main.js)

 const saveZip    = require('single-market-robot-simulator-savezip');
 app.downloadData = function(){
     }, 60*1000);


2016 Paul Brewer Economic and Financial Technology Consulting LLC


MIT License

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