This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

is-yarn-installed

1.0.0 • Public • Published

isYarnInstalled

A ultra-simple module to check if a command-line command exists.

Installation

npm install is-yarn-installed

or if you prefer use yarn:

yarn add is-yarn-installed

usage

You can pass a callback, but for default, a return of the value is defined.

const isYarnInstalled = require('is-yarn-installed');

console.log(isYarnInstalled())
const isYarnInstalled = require('is-yarn-installed');

isYarnInstalled(function (isInstalled) => {
    if (isInstalled) {
        console.log('Is installed!')
    } else {
        console.log('Isnt installed. :(')
    }
})

Thanks

To @mathisonian for all the code to detect if the system have the command installed.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i is-yarn-installed

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    1.72 kB

    Total Files

    8

    Last publish

    Collaborators

    • guilherssousa