6.0.0 • Published 2 years ago

single-market-robot-simulator-openzip v6.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

single-market-robot-simulator-openzip

Build Status Known Vulnerabilities Language grade: JavaScript Total alerts

Returns a Promise yielding restored simulation data from a zip file. The returned data has single-market-robot-simulator simulations in data.sims and configuration data in data.config.

Used by single-market-robot-simulator-app-framework

Installation

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

Usage

This module exports a single function, openzip.

import

import openzip from 'single-market-robot-simulator-openzip';

Calling

 const data = await openZip(zipdata, SMRS, progress);

returns a Promise resolving to properties data.sims and data.config

Parameters

zipdata is a Blob or ArrayBuffer to be read by Greggman and Trevor Sanz's unzippit module

SMRS is an object containing an import of single-market-robot-simulator or similar code

progress, optional, is a function taking a single object parameter {value, max, message} that writes status updates to an appropriate part of the screen

Copyright

2020,2022- Paul Brewer Economic and Financial Technology Consulting LLC

License

MIT License

5.0.0

2 years ago

6.0.0

2 years ago

4.2.0

2 years ago

4.1.1

2 years ago

4.1.0

2 years ago

4.0.0

2 years ago

3.8.0

4 years ago

3.10.0

4 years ago

3.7.4

4 years ago

3.9.0

4 years ago

3.7.3

4 years ago

3.7.1

4 years ago

3.7.2

4 years ago

3.7.0

4 years ago

3.6.0

4 years ago

3.5.0

4 years ago

3.4.1

4 years ago

3.4.0

4 years ago

3.3.0

5 years ago

3.2.0

6 years ago

3.1.1

6 years ago

3.1.0

6 years ago

3.0.0

6 years ago

1.0.0

7 years ago

0.2.0

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago