# is-yarn-installed

> A simple node module to check if yarn is installed

Latest version **1.0.0** (published 2019-12-08) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install is-yarn-installed
pnpm add is-yarn-installed
yarn add is-yarn-installed
bun add is-yarn-installed
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-12-08 |
| First published | 2019-12-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Guilherme S. Sousa |
| Maintainers | guilherssousa |

## Links

- npm: https://www.npmjs.com/package/is-yarn-installed
- Repository: git@github.com:guilherssousa/isYarnInstalled
- npm.io page: https://npm.io/package/is-yarn-installed

## Dependencies (1)

- [command-exists](https://npm.io/package/command-exists.md) ^1.2.8

## Recent versions

- 1.0.0 (latest) — 2019-12-08

## README

## isYarnInstalled

A ultra-simple module to check if a command-line command exists.

## Installation 

```bash
npm install is-yarn-installed
```

or if you prefer use yarn:

```bash
yarn add is-yarn-installed
```


## usage

You can pass a callback, but for default, a return of the value is defined.

```js
const isYarnInstalled = require('is-yarn-installed');

console.log(isYarnInstalled())
```

```js
const isYarnInstalled = require('is-yarn-installed');

isYarnInstalled(function (isInstalled) => {
    if (isInstalled) {
        console.log('Is installed!')
    } else {
        console.log('Isnt installed. :(')
    }
})
```


## Thanks

To [@mathisonian](https://github.com/mathisonian) for all the code to detect if the system have the command installed.

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