Simple custom URL scheme launcher.
npm install @ba0918/simple-custom-url-scheme
yarn add @ba0918/simple-custom-url-scheme
`
Usage
for Node.js
`js
import { dispatchFromUserAgent } from '@ba0918/simple-custom-url-scheme'
dispatchFromUserAgent(window.navigator.userAgent, {
'Android': { url: 'https://www.google.co.jp/', fallback: 'https://www.google.co.jp/' },
'iOS': { url: 'https://www.google.co.jp/', fallback: 'https://www.google.co.jp/' },
'PC': { url: 'https://www.google.co.jp/', fallback: 'https://www.google.co.jp/' },
})
`
for Browser
`html
`
Development
$3
`sh
yarn install
`
$3
`sh
yarn run build
`
$3
`sh
yarn run test
`
$3
`sh
yarn run build
cd dist
npm publish --access=public
``