Socket
Socket
Sign inDemoInstall

apple-store-link

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apple-store-link

Custruct links to the Apple iTunes Store.


Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

If you are looking for a module that does links for more than one store see store-link.

Install

$ npm install --save apple-store-link

Usage

var appleStoreLink = require('apple-store-link');

appleStoreLink('376183339');
//=> https://itunes.apple.com/app/id376183339

appleStoreLink('376183339', 'us');
//=> https://itunes.apple.com/us/app/id376183339

appleStoreLink('376183339', 'us', 'ted');
//=> https://itunes.apple.com/us/app/ted/id376183339

appleStoreLink('376183339', null, 'ted');
//=> https://itunes.apple.com/app/ted/id376183339

appleStoreLink('376183339', null, 'ted', 'itms-apps');
//=> itms-app://itunes.apple.com/app/ted/id376183339

API

Apple iTunes

https://itunes.apple.com/[lang]/app/[developer]/id[id]

appleStoreLink(id, lang, developer, protocol)

id

Required

Type: string

The string that identifies the application on each store.

lang

Optional

Type: string

Localized Apple iTunes page (ex: us, es, pt).

developer

Optional

Type: string

The developer's id.

protocol

Optional

Type: string

The protocol to use for the link:

  • https: Default, goes to the application's page on the browser.
  • itms: Calls for the App Store to be launched.

Note: this variable is only checked to see if it's a string, the protocol is open for any content you'd like on the string (as all other parameters).

License

MIT © Pedro Duarte

FAQs

Package last updated on 19 Jul 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