https://github.com/idleberg/node-exec-appx
Executes a Windows Store app (Appx)
https://github.com/idleberg/node-exec-appx
appx nodejs universal-windows-platform windows-store
Last synced: 3 months ago
JSON representation
Executes a Windows Store app (Appx)
- Host: GitHub
- URL: https://github.com/idleberg/node-exec-appx
- Owner: idleberg
- Created: 2018-09-19T20:44:59.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-31T22:24:44.000Z (almost 3 years ago)
- Last Synced: 2025-04-19T19:24:35.396Z (over 1 year ago)
- Topics: appx, nodejs, universal-windows-platform, windows-store
- Language: JavaScript
- Size: 212 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# exec-appx
[](https://www.npmjs.org/package/exec-appx)
[](https://www.npmjs.org/package/exec-appx)
[](https://circleci.com/gh/idleberg/node-exec-appx)
Executes a Windows Store application (Appx)
## Prerequisites
This library requires PowerShell 5.0 (or higher) and support for the Windows Store
## Installation
`yarn add exec-appx || npm install exec-appx`
## Usage
`execAppx(appID: string, args: Array, options: Object)`
Example usage in script:
```js
const execAppx = require('exec-appx');
// Application ID
const appID = 'SpotifyAB.SpotifyMusic';
(async () => {
try {
await execAppx(appID);
} catch (err) {
console.error(err);
}
})();
```
### Options
See [`child_process.spawn`](https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options) documentation for details
## Related
- [get-appx-manifest](https://www.npmjs.com/package/get-appx-manifest)
- [get-appx-path](https://www.npmjs.com/package/get-appx-path)
## License
This work is licensed under [The MIT License](https://opensource.org/licenses/MIT)