@mambasdk/pos

Mamba web environment wrapper and simulator

Stats

StarsIssuesVersionUpdatedCreatedSize
@mambasdk/pos
0.0.123 years ago3 years agoMinified + gzip package size for @mambasdk/pos in KB

Readme

@mambasdk/pos

Simulator

For mamba apps to be able to run on a common browser, you must simulate the real POS environment.

  • Just the import is enough to create the simulated environment.
/** Boot the Mamba simulator */
import '@mambasdk/pos/simulator/index.js';
  • However, you can also initialize the digital POS component, which will be the container for your mamba app when running on a browser. A store must be passed to the component.
import * as Simulator from '@mambasdk/pos/simulator/index.js';
import store from './store.js';

/** Initialize the digital POS component */
new Simulator.POS({ target: document.body, store });

It's obligatory to include the entry file which starts the simulator before the app.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.