is-yarn 
Check if yarn is installed gloabally.
Install
$ npm install -g is-yarnUsage
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
Check if yarn is installed globally
Check if yarn is installed gloabally.
$ npm install -g is-yarnconst is = require('is-yarn')
is.isyarn()
// Retruns true if yarn is installed
//=> 'true'This tweet from Kent C. Dodds.
MIT © Akash Nimare