1.4.3 • Published 1 year ago

registry-apppaths v1.4.3

Weekly downloads
8
License
MIT
Repository
github
Last release
1 year 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

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
1.4.3

1 year ago

1.4.2

3 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.6

4 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.24

8 years ago

1.1.23

8 years ago

1.1.22

8 years ago

1.1.21

8 years ago

1.1.20

8 years ago

1.1.19

8 years ago

1.1.18

8 years ago

1.1.17

8 years ago

1.1.14

8 years ago

1.1.13

8 years ago

1.1.12

8 years ago

1.1.10

8 years ago

1.1.9

8 years ago

1.1.8

8 years ago

1.1.7

8 years ago

1.1.6

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago