Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

is-yarn

akashnimare3MIT0.0.3

Check if yarn is installed globally

yarn, check-yarn, cli-app, cli

readme

is-yarn Build Status

Check if yarn is installed gloabally.

Install

$ npm install -g is-yarn

Usage

const is = require('is-yarn')

is.isyarn()
// Retruns true if yarn is installed
//=> 'true'

Inspiration

This tweet from Kent C. Dodds.

License

MIT © Akash Nimare