stb-app

2.0.3 • Public • Published

Application core

build status npm version dependencies status devDependencies status Gitter

Main module to create STB application. Extends SPA app module. Adds STB-specific logic (handle screen resolution, STB events, work inside iframe, etc.).

Installation

npm install stb-app

Usage

Add the instance to the scope:

var app = require('stb-app');

At run-time adds the following attributes:

Name Description
app.data.host True if executed on the STB device, set by debug module at runtime.
app.data.screen Screen geometry and margins.

Development mode

There is a global var DEVELOP which activates additional consistency checks and protection logic not available in release mode.

Contribution

If you have any problem or suggestion please open an issue here. Pull requests are welcomed with respect to the JavaScript Code Style.

License

stb-app is released under the MIT License.

Package Sidebar

Install

npm i stb-app

Weekly Downloads

8

Version

2.0.3

License

MIT

Unpacked Size

48 kB

Total Files

34

Last publish

Collaborators

  • stbsdk