Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/igorskyflyer/npm-windows-packages
π» A Node.js module for reading the Packages registry key on Windows 10+. Useful for retrieving Windows 10+ installed Store applications. π¦
https://github.com/igorskyflyer/npm-windows-packages
back-end biome igorskyflyer keys module node npm package registry store system typescript utility vitest windows
Last synced: about 20 hours ago
JSON representation
π» A Node.js module for reading the Packages registry key on Windows 10+. Useful for retrieving Windows 10+ installed Store applications. π¦
- Host: GitHub
- URL: https://github.com/igorskyflyer/npm-windows-packages
- Owner: igorskyflyer
- License: mit
- Created: 2019-08-29T14:37:30.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-07-21T21:27:12.000Z (4 months ago)
- Last Synced: 2024-09-23T01:14:49.860Z (about 1 month ago)
- Topics: back-end, biome, igorskyflyer, keys, module, node, npm, package, registry, store, system, typescript, utility, vitest, windows
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@igor.dvlpr/windows-packages
- Size: 267 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
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! ππ
@igorskyflyer
## π Table of contents
- [Usage](#-usage)
- [API](#-api)
- [Examples](#-examples)
- [Changelog](#-changelog)
- [License](#-license)
- [Related](#-related)
- [Author](#-author)
## π΅πΌ Usage
> [!WARNING]
> Uses `reg.exe`, **WINDOWS ONLY!**!
>
Install it by executing:
```shell
npm i "@igor.dvlpr/windows-packages"
```
## π€ΉπΌ API
```ts
get(): string[]
```Returns an array of sub-keys located in the WindowsPackages key.
```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
```
```ts
has(list: string[]): boolean[]
```Returns an array of Booleans indicating whether the entries of the parameter **list** are installed on the system.
```ts
import { has } from '@igor.dvlpr/windows-packages'const hasPackages: boolean[] = has(['edge', 'foobar', 'mspaint'])
console.log(hasPackages) // [true, false, true]
```---
## β¨ Examples
`example.ts`
```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](https://github.com/igorskyflyer/npm-windows-packages/blob/main/CHANGELOG.md).
---
## πͺͺ License
Licensed under the MIT license which is available here, [MIT license](https://github.com/igorskyflyer/npm-windows-packages/blob/main/LICENSE).
---
## 𧬠Related
[@igor.dvlpr/odin](https://www.npmjs.com/package/@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](https://www.npmjs.com/package/@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](https://www.npmjs.com/package/@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](https://www.npmjs.com/package/@igor.dvlpr/regkeys)
> _π An NPM package for fetching Windows registry keys. π_
[@igor.dvlpr/jmap](https://www.npmjs.com/package/@igor.dvlpr/jmap)
> _πΆοΈ Reads a JSON file into a Map. π»_
---
### π¨π»βπ» Author
Created by **Igor DimitrijeviΔ** ([*@igorskyflyer*](https://github.com/igorskyflyer/)).