1.0.0 • Published 4 years ago

airtap-default v1.0.0

Weekly downloads
125
License
MIT
Repository
github
Last release
4 years ago

airtap-default

Default browser provider. Opens the default browser on your machine.

npm status node Travis build status JavaScript Style Guide

Table of Contents

Usage

Programmatic

const Default = require('airtap-default')
const provider = new Default()

// Get a list of desired browsers (there's just 1 here)
const wanted = [{ name: 'default' }]
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-default

browsers:
  - name: default

API

Default()

Constructor. Returns an instance of browser-provider.

Install

With npm do:

npm install airtap-default

License

MIT © 2020-present Airtap contributors