google-store-link

Custruct links to the Google Play Store.

Usage no npm install needed!

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

README

google-store-link Build Status

Install

$ npm install --save google-store-link

Usage

var googleStoreLink = require('google-store-link');

googleStoreLink(id, lang);

// Example
googleStoreLink('com.duolingo', 'pt-PT');
//=> https://play.google.com/store/apps/details?id=com.duolingo&hl=pt-PT

API

googleStoreLink(id, lang)

id

Required

Type: string

The string that identifies the application on Google Play Store.

https://play.google.com/store/apps/details?id=[the_id]

lang

Optional

Type: string;

Default: null;

https://play.google.com/store/apps/details?id=[the_id]&hl=[lang]

The language can be generally defined like "en" (English) or "pt" (Portuguese), but also more localized like "pt-PT" (Portuguese - Portugal).

License

MIT © Pedro Duarte