has-yarn

WebJar for has-yarn

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

has-yarn
Последняя версия

Последняя версия

2.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

has-yarn
WebJar for has-yarn
Ссылка на сайт

Ссылка на сайт

https://www.webjars.org
Система контроля версий

Система контроля версий

https://github.com/sindresorhus/has-yarn

Скачать has-yarn

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/has-yarn/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>has-yarn</artifactId>
    <version>2.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/has-yarn/
implementation 'org.webjars.npm:has-yarn:2.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/has-yarn/
implementation ("org.webjars.npm:has-yarn:2.1.0")
'org.webjars.npm:has-yarn:jar:2.1.0'
<dependency org="org.webjars.npm" name="has-yarn" rev="2.1.0">
  <artifact name="has-yarn" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='has-yarn', version='2.1.0')
)
libraryDependencies += "org.webjars.npm" % "has-yarn" % "2.1.0"
[org.webjars.npm/has-yarn "2.1.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

has-yarn Build Status

Check if a project is using Yarn

Useful for tools that needs to know whether to use yarn or npm to install dependencies.

It checks if a yarn.lock file is present in the working directory.

Install

$ npm install has-yarn

Usage

.
├── foo
│   └── package.json
└── bar
    ├── package.json
    └── yarn.lock
const hasYarn = require('has-yarn');

hasYarn('foo');
//=> false

hasYarn('bar');
//=> true

API

hasYarn([cwd])

Returns a boolean of whether the project uses Yarn.

cwd

Type: string
Default: process.cwd()

Current working directory.

Related

License

MIT © Sindre Sorhus

Версии библиотеки

Версия
2.1.0