🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

has-yarn-cli

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

has-yarn-cli

Check if a project is using Yarn

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
1
Created
Source

has-yarn-cli

Check if a project is using Yarn

It checks for a yarn.lock file in the given directory or any of its parent directories (useful for Yarn workspaces).

Install

npm install --global has-yarn-cli

Usage

$ has-yarn --help

  Usage
    $ has-yarn
    âś” This project uses Yarn

  Options
    --quiet  Silence output (useful for scripts)

  Exits with code 0 if the project uses Yarn, otherwise code 2
  • has-yarn - API for this package

Keywords

cli-app

FAQs

Package last updated on 15 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts