Skip to content

πŸ’» A Node.js module for reading the Packages registry key on Windows 10+. Useful for retrieving Windows 10+ installed Store applications. πŸ“¦

License

Notifications You must be signed in to change notification settings

igorskyflyer/npm-windows-packages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

91 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Windows Packages


πŸ’» A Node.js module for reading the Packages registry key on Windows 10+.
Useful for retrieving Windows 10+ installed Store applications. πŸ“¦



πŸ’– Support further development

I work hard for every project, including this one and your support means a lot to me!
Consider buying me a coffee. β˜•
Thank you for supporting my efforts! πŸ™πŸ˜Š


Donate to igorskyflyer

@igorskyflyer




πŸ“ƒ Table of contents



πŸ•΅πŸΌ Usage


Warning

Uses reg.exe, WINDOWS ONLY!!


Install it by executing:

npm i "@igor.dvlpr/windows-packages"

🀹🏼 API

get(): string[]

Returns an array of sub-keys located in the WindowsPackages key.

import { get } from '@igor.dvlpr/windows-packages'

const packages: string[] = get()

console.log(packages) // ['Microsoft.MicrosoftEdge_44.18362.267.0...', 'Microsoft.Microsoft3DViewer_7.1908.9012.0...',...]

// names shortened for the sake of brevity


has(list: string[]): boolean[]

Returns an array of Booleans indicating whether the entries of the parameter list are installed on the system.

import { has } from '@igor.dvlpr/windows-packages'

const hasPackages: boolean[] = has(['edge', 'foobar', 'mspaint'])

console.log(hasPackages) // [true, false, true]

✨ Examples

example.ts

import { get } from '@igor.dvlpr/windows-packages'

const packages: string[] = get()

console.log(packages) // ['Microsoft.MicrosoftEdge_44.18362.267.0...', 'Microsoft.Microsoft3DViewer_7.1908.9012.0...',...]

// names shortened for the sake of brevity

πŸ“ Changelog

πŸ“‘ Changelog is available here: CHANGELOG.md.


πŸͺͺ License

Licensed under the MIT license which is available here, MIT license.


🧬 Related

@igor.dvlpr/odin

πŸ”± Odin is an Object wrapper that allows you to create objects and set their attributes - all at once! πŸ”Ί


@igor.dvlpr/str-is-in

🧡 Provides ways of checking whether a String is present in an Array of Strings using custom Comparators. πŸ”


@igor.dvlpr/strip-html

πŸ₯ž Removes HTML code from the given string. Can even extract text-only from the given an HTML string. ✨


@igor.dvlpr/regkeys

πŸ“š An NPM package for fetching Windows registry keys. πŸ—


@igor.dvlpr/jmap

πŸ•ΆοΈ Reads a JSON file into a Map. 🌻



πŸ‘¨πŸ»β€πŸ’» Author

Created by Igor Dimitrijević (@igorskyflyer).

About

πŸ’» A Node.js module for reading the Packages registry key on Windows 10+. Useful for retrieving Windows 10+ installed Store applications. πŸ“¦

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project