项目作者: danielbayerlein

项目描述 :
❓ Can I use Yarn? caniuse-yarn checks if Yarn (@yarnpkg) is available.
高级语言: JavaScript
项目地址: git://github.com/danielbayerlein/caniuse-yarn.git
创建时间: 2016-10-18T18:10:41Z
项目社区:https://github.com/danielbayerlein/caniuse-yarn

开源协议:MIT License

下载


caniuse-yarn

npm version
Actions Status
Codecov
JavaScript Style Guide
Dependabot Status

caniuse-yarn checks if Yarn is available.

Installation

Library

  1. # npm
  2. npm install @danielbayerlein/caniuse-yarn --save
  3. # Yarn
  4. yarn add @danielbayerlein/caniuse-yarn

CLI

  1. # npm
  2. npm install @danielbayerlein/caniuse-yarn --global
  3. # Yarn
  4. yarn global add @danielbayerlein/caniuse-yarn

Usage

Library

  1. const caniuseYarn = require('@danielbayerlein/caniuse-yarn')();
  2. console.log(caniuseYarn ? 'Yes' : 'No');

CLI

  1. caniuse-yarn

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Copyright (c) 2016-present Daniel Bayerlein. See LICENSE for details.