https://github.com/zacanger/is-program-installed
Check if a program is installed, on Unix-like systems
https://github.com/zacanger/is-program-installed
command exec executable hash program
Last synced: 10 months ago
JSON representation
Check if a program is installed, on Unix-like systems
- Host: GitHub
- URL: https://github.com/zacanger/is-program-installed
- Owner: zacanger
- License: mit
- Created: 2018-12-04T22:44:38.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-30T20:11:37.000Z (over 1 year ago)
- Last Synced: 2025-03-28T09:36:21.735Z (11 months ago)
- Topics: command, exec, executable, hash, program
- Language: JavaScript
- Homepage: http://npm.im/is-program-installed
- Size: 1.02 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# is-program-installed
Check if a program is installed.
[Donate](https://ko-fi.com/zacanger)
--------
## Installation
`npm i is-program-installed`
## Usage
```javascript
const isInstalled = require('is-program-installed')
isInstalled('ls') // => true
isInstalled('Slack.app') // => true
isInstalled('powershell.exe') // => true
isInstalled('valid-linux-app.desktop') // => true
isInstalled('something-that-does-not-exist') // => false
```
[LICENSE](./LICENSE.md)