JSPM

is-electron-renderer

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

Check if code is running in Electron renderer process.

Package Exports

  • is-electron-renderer

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 (is-electron-renderer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

is-electron-renderer

Check if code is running in Electron renderer process.

Electron code can run in either the main process or the renderer process. This is the same as asking if the code is running in a web page with access to the DOM or not. Read more here: https://github.com/atom/electron/blob/master/docs/tutorial/quick-start.md

Install

npm i --save is-electron-renderer

Usage

var isRenderer = require('is-electron-renderer')

console.log(isRenderer)
// => true

License

MIT