Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

registry-apppaths

igorskyflyer60MITdeprecated1.4.3TypeScript support: included

This package has been deprecated, please use @igor.dvlpr/registry-apppaths instead.

🪀 A Node.js module for reading the AppPaths registry key on Windows. Useful for retrieving applications that can be launched from the command prompt. 🗃

registry, windows, apppaths, applications, packages, user, igor.dvlpr

readme

🪀 Registry AppPaths 🗃

A Node.js module for reading the AppPaths registry key on Windows. Useful for retrieving applications that can be launched from the command prompt.

Uses the reg.exe, WINDOWS ONLY!

Like it? Buy me a beer.

Donate


This package has been deprecated, please use @igor.dvlpr/registry-apppaths instead.


Install

npm install registry-apppaths --save

Exports

  • Functions

    • get(),
    • has(),
    • refresh()

Usage

.get(): string[]

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

const appPaths = require('registry-apppaths')
const apps = appPaths.get()

console.log(apps)

// ['chrome.exe', 'firefox.exe', 'opera.exe'...]

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

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

const appPaths = require('registry-apppaths')
const has = appPaths.has(['chrome.exe', 'winword.exe', 'mspaintTYPO.exe'])

console.log(has)

// [true, true, false]

.refresh(): void

Force refresh the info from the registry, instead of retrieving the cached data.

const appPaths = require('registry-apppaths')
let apps = appPaths.get()

console.log(apps)

// ['chrome.exe', 'firefox.exe', 'opera.exe'...]

// application install method...

appPaths.refresh()

apps = appPaths.get()

console.log(apps)

// ['chrome.exe', 'firefox.exe', 'opera.exe', 'winword.exe'...]

Development

git clone https://github.com/igorskyflyer/node-registry-apppaths.git

followed by a,

npm i

Test

Open the project and execute:

npm i
npm test