is-electron

Detect if running in Electron.

Usage no npm install needed!

<script type="module">
  import isElectron from 'https://cdn.skypack.dev/is-electron';
</script>

README

is-electron build status Coverage Status

NPM

Detect if running in Electron.

Installation

npm install --save is-electron

Usage

import isElectron from 'is-electron';

console.log(isElectron());

License

Copyright (c) 2016 Cheton Wu

Licensed under the MIT License.