# is-electron

> Detect if running in Electron.

Latest version **2.2.2** (published 2023-02-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-electron
pnpm add is-electron
yarn add is-electron
bun add is-electron
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.2 |
| Published | 2023-02-21 |
| First published | 2016-06-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 103 |
| Author | Cheton Wu |
| Maintainers | cheton |
| Keywords | atom, electron, renderer, process |

## Links

- npm: https://www.npmjs.com/package/is-electron
- Repository: git@github.com:cheton/is-electron
- Homepage: https://github.com/cheton/is-electron
- npm.io page: https://npm.io/package/is-electron

## Recent versions

- 2.2.2 (latest) — 2023-02-21
- 2.2.1 — 2021-11-21
- 2.2.0 — 2018-10-31
- 2.1.0 — 2017-08-02
- 2.0.0 — 2016-06-16
- 0.0.1-security — 2016-06-08

## README

# is-electron [![build status](https://travis-ci.org/cheton/is-electron.svg?branch=master)](https://travis-ci.org/cheton/is-electron) [![Coverage Status](https://coveralls.io/repos/github/cheton/is-electron/badge.svg?branch=master)](https://coveralls.io/github/cheton/is-electron?branch=master)

[![NPM](https://nodei.co/npm/is-electron.png?downloads=true&stars=true)](https://www.npmjs.com/package/is-electron)

Detect if running in Electron.

## Installation

```bash
npm install --save is-electron
```

## Usage

```js
import isElectron from 'is-electron';

console.log(isElectron());
```

## License

Copyright (c) 2016 Cheton Wu

Licensed under the [MIT License](LICENSE).

---
_Source: https://npm.io/package/is-electron · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
