JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 96
  • Score
    100M100P100Q60929F
  • License MIT

Boilerplate for touchscreen or kiosk apps built with Electron

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (electron-touchscreen) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    electron-touchscreen

    Boilerplate for touchscreen or kiosk apps built with Electron.

    Install

    npm install electron-touchscreen --save

    Run the example

    cd example
    npm run start

    Basic Usage

    const path = require('path');
    const url = require('url');
    const electron = require('electron');
    
    const TouchscreenWindow = require('electron-touchscreen');
    
    let win = null;
    const app = electron.app;
    
    app.on('ready', ()=> {
      const demo_url = url.format({
        pathname: path.join(__dirname, 'index.html'),
        protocol: 'file', 
        slashes: true,
      });
    
      win = new TouchscreenWindow({url: demo_url});
    });

    Key Commands

    • CMD+K: Toggles fullscreen
    • CMD+C: Toggle cursor visibility