1.4.2 ā€¢ Published 2 years ago

registry-apppaths v1.4.2

Weekly downloads
8
License
MIT
Repository
github
Last release
2 years ago

šŸŖ€ 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

āœØ Since v.1.3.0 Registry AppPaths is a hybrid module that supports both CommonJS (legacy) and ES modules, thanks to Modern Module.

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
1.4.2

2 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.24

6 years ago

1.1.23

6 years ago

1.1.22

6 years ago

1.1.21

6 years ago

1.1.20

6 years ago

1.1.19

6 years ago

1.1.18

6 years ago

1.1.17

6 years ago

1.1.14

6 years ago

1.1.13

6 years ago

1.1.12

6 years ago

1.1.10

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago