0.0.1 • Published 9 years ago
google-store-link v0.0.1
google-store-link
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