@igorskyflyer/windows-packages
v1.0.3
Published
💻 A package for reading the Packages registry key on Windows 10+. Useful for retrieving Windows 10+ installed Store applications. 📦
Downloads
4
Maintainers
Readme
[!CAUTION] Uses
reg.exe, WINDOWS ONLY!
📃 Table of Contents
🤖 Features
- 🗝 Reads Windows registry from the Packages key
- 📋 Retrieves a full list of installed Windows packages
- 🔍 Case‑insensitive search within package names
- ✅ Checks presence of one or more package names
- 📊 Returns Boolean results for each queried package
- 🛡 Throws error if not running on the Windows OS
- 🧹 Trims and normalises data for reliable matching
🕵🏼 Usage
Install it by executing any of the following, depending on your preferred package manager:
pnpm add @igorskyflyer/windows-packagesyarn add @igorskyflyer/windows-packagesnpm i @igorskyflyer/windows-packages🤹🏼 API
get(): string[]Returns an array of sub-keys located in the WindowsPackages key.
import { get } from '@igorskyflyer/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 brevityhas(list: string[]): boolean[]Returns an array of Booleans indicating whether the entries of the parameter list are installed on the system.
import { has } from '@igorskyflyer/windows-packages'
const hasPackages: boolean[] = has(['edge', 'foobar', 'mspaint'])
console.log(hasPackages) // [true, false, true]🗒️ Examples
example.ts
import { get } from '@igorskyflyer/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
📑 The changelog is available here, CHANGELOG.md.
🪪 License
Licensed under the MIT license which is available here, MIT license.
💖 Support
🧬 Related
🔱 Odin is an Object wrapper that allows you to create objects and set their attributes - all at once! 🔺
🧵 Provides ways of checking whether a String is present in an Array of Strings using custom Comparators. 🔍
🥞 Removes HTML code from the given string. Can even extract text-only from the given an HTML string. ✨
📚 An NPM package for fetching Windows registry keys. 🗝
🕶️ Reads a JSON file into a Map. 🌻
👨🏻💻 Author
Created by Igor Dimitrijević (@igorskyflyer).
