A javascript library for managing installed applications on windows
To install the windowsappsjs, use npm.
npm install windowsapps
or
npm i windowsapps
As windowsapps module in python this module also does the same operations such as getting the list of applicaions installed ,searching for an installed application or opening an applicaion.
// Import the required functions from the package
const {get_apps,find_app,open_app} = require("windowsapps")
Below is the info and usage of each functions:
This function is used to get the list of all applications
installed.
It returns the Name and AppID of each application installed.
/* get the list of applications installed using get_apps function */
console.log(get_apps()) /* get the list of applications installed using get_apps function */
This function is used to find/search for application in the list of installed applications. It returns the Name and AppID of the application searched/found or returns Application not found if the application is not installed or found.
Parameter | Type | Description |
---|---|---|
appname |
string |
Required. Name of the application to be searched |
/*Find or search an application using find_app function*/
console.log(find_app('notepad')) /*prints the Name and AppID of the application searched*/
This function is used to open/start an installed application. It returns Application not found if the application is not installed or found.
Parameter | Type | Description |
---|---|---|
appname |
string |
Required. Name of the application to be searched |
/*Open or start an application using open_app function*/
console.log(open_app("notepad")) /*prints "Application opened" if success or prints "Application not found" if failed to start application */
Windows only
For support, you can buy me a cofee ☕
or
You can even pay a fraction of BTC to my BTC address: bc1qwxpusvdd3w9vglmdwn945uz2m87czrh3na52mq