# bin-exists

> Check if the binary exists on system

Latest version **0.2.1** (published 2017-05-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install bin-exists
pnpm add bin-exists
yarn add bin-exists
bun add bin-exists
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2017-05-08 |
| First published | 2016-12-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Guntur Poetra |
| Maintainers | guntur |
| Keywords | check, bin, exists, utility, bin-utility |

## Links

- npm: https://www.npmjs.com/package/bin-exists
- Repository: https://github.com/iguntur/bin-exists
- Homepage: https://github.com/iguntur/bin-exists#readme
- Issues: https://github.com/iguntur/bin-exists/issues
- npm.io page: https://npm.io/package/bin-exists

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 0.2.1 (latest) — 2017-05-08
- 0.2.0 — 2017-01-01
- 0.1.3 — 2016-12-30
- 0.1.2 — 2016-12-29
- 0.1.1 — 2016-12-29
- 0.1.0 — 2016-12-29

## README

# bin-exists [![Build Status](https://travis-ci.org/iguntur/bin-exists.svg?branch=master)](https://travis-ci.org/iguntur/bin-exists) [![Build Status](https://ci.appveyor.com/api/projects/status/github/iguntur/bin-exists?branch=master&svg=true)](https://ci.appveyor.com/project/iguntur/bin-exists)

> Check if the binary exists on system


## Install

```bash
$ npm install --save bin-exists
```


## Usage


```js
const binExists = require('bin-exists');

// async
binExists('node').then(val => {
    console.log(val);
    //=> true
});

binExists('foo').then(val => {
    console.log(val);
    //=> false
});

// sync
console.log(binExists.sync('node'));
//=> true

console.log(binExists.sync('foo'));
//=> false
```


## API

### binExists(input)

Returns promise for an input value

### binExists.sync(input)

Returns boolean for an input value

#### input

Type: `string` <br>
Required: `true`

Input command name


## License

MIT © [Guntur Poetra](http://guntur.starmediateknik.com)

---
_Source: https://npm.io/package/bin-exists · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
