app-store-link

Generate a link to an iOS or Google Play app

Usage no npm install needed!

<script type="module">
  import appStoreLink from 'https://cdn.skypack.dev/app-store-link';
</script>

README

app-store-link Build Status

Generate a link to iOS or google play app

Uses these specs: App Store, Play Store

Install

$ npm install --save app-store-link

Usage

var link = require('app-store-link')

link.ios('123')
// => https://itunes.apple.com/us/app/id123?mt=8'

link.android('com.my.app')
// => https://play.google.com/store/apps/details?id=com.my.app

link.android('com.my.app', {native: true})
// => market://details?id=com.my.app

Related

License

MIT © Andrew Joslin