Socket
Socket
Sign inDemoInstall

windows-store-link

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

windows-store-link

Custruct links to the Windows Store for applications.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Install

$ npm install --save windows-store-link

Usage

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

googleStoreLink(id, lang);

// Example
windowsStoreLink('duolingo-learn-languages-for-free/9wzdncrcv5xn', 'pt-pt');
//=> https://www.microsoft.com/pt-pt/store/apps/duolingo-learn-languages-for-free/9wzdncrcv5xn

API

windowsStoreLink(id, lang)

id

Required

Type: string

The string that identifies the application on Microsoft Store for applications.

https://www.microsoft.com/pt-pt/store/apps/[the_id]

lang

Optional

Type: string;

Default: null (the site detects your language preference);

https://www.microsoft.com/[lang]/store/apps/[the_id]

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

Note: When you put the general identifier the module does a doubling of that key ("pt" => "pt-pt") as this is required for the link construction. This way it is possible to use the same general language identifier when using store-link.

License

MIT © Pedro Duarte

FAQs

Package last updated on 03 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc