electron-touchscreen

1.0.0 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.03latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.03
0.0.114
0.0.1011
0.0.92
0.0.82
0.0.72
0.0.62
0.0.52
0.0.42
0.0.32
0.0.22
0.0.12

Package Sidebar

Install

npm i electron-touchscreen

Weekly Downloads

36

Version

1.0.0

License

MIT

Unpacked Size

8.4 kB

Total Files

8

Last publish

Collaborators

  • jeremy.from.earth