Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

get-appx-path

idleberg20MIT0.2.4

Returns the path of a Windows Store application (Appx)

appx, windows store, windows store app, microsoft store, universal windows platform

readme

get-appx-path

npm npm CircleCI David

Returns the path of a Windows Store application (Appx)

Prerequisites

This library requires PowerShell 5.0 (or higher) and support for the Windows Store

Installation

yarn add get-appx-path || npm install get-appx-path

Usage

getAppxPath(appID: string, options: Object)

Example usage in script:

const getAppxPath = require('get-appx-path');

// Application ID
const appID = 'SpotifyAB.SpotifyMusic';

(async () => {
    try {
        const appx = await getAppxPath(appID);
        console.log(appx.path);
    } catch (err) {
        console.error(err);
    }
})();

Options

options.inputEncoding

Default: utf8

options.outputEncoding

Default: utf8

options.debugMsg

Default: false

options.verbose

Default: true

options.executionPolicy

Default: Bypass

options.noProfile

Default: true

License

This work is licensed under The MIT License