vigour-open

open links in default browser

Usage no npm install needed!

<script type="module">
  import vigourOpen from 'https://cdn.skypack.dev/vigour-open';
</script>

README

js-standard-style npm version Build Status

Open

Install

  • npm i vigour-open

Updates via upstream remote

  • git remote add skeleton git@github.com:vigour-io/plugin.git
  • git pull skeleton develop

Try it out

  • npm run ios
  • npm run android
  • npm run all

Usage

var open = require('vigour-open')
open.open(url, target)

see tests for usage examples

Building native apps

See wrapper

Native Plugin specs

Please refer to https://github.com/vigour-io/open/blob/develop/test/browser/bridge.js#L4 for expected behavior of the native plugin methods. These mock methods respond in a way to pass the tests, the comments will specify what other possibilities there are and how errors should be handled.