New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

airtap-electron

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

airtap-electron

Electron browser provider

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

airtap-electron

Electron browser provider.

npm status node Travis build status JavaScript Style Guide

Table of Contents

Click to expand

Usage

Programmatic

const Electron = require('airtap-electron')
const provider = new Electron()

// Get a list of desired browsers (there's just 1 here)
const wanted = [{ name: 'electron' }]
const manifests = await provider.manifests(wanted)

// Instantiate a browser
const target = { url: 'http://localhost:3000' }
const browser = provider.browser(manifests[0], target)

await browser.open()

With Airtap

providers:
  - airtap-electron

browsers:
  - name: electron

This provider also exposes a supports property to match on:

browsers:
  - name: electron
    supports:
      headless: true

API

Electron()

Constructor. Returns an instance of browser-provider.

Browser options

  • headless (boolean, default true): run in headless mode
  • window (object): custom options to pass to BrowserWindow()
  • devtools (object): custom options to pass to openDevTools() (unless headless)

In Airtap these can be set like so:

browsers:
  - name: electron
    options:
      headless: false
      window:
        webPreferences:
          sandbox: true
      devtools:
        mode: detach

Install

Electron must be installed separately. With npm do:

npm install airtap-electron electron

License

MIT © 2020-present Airtap contributors

Keywords

FAQs

Package last updated on 23 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc