Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/danielbayerlein/caniuse-yarn

❓ Can I use Yarn? caniuse-yarn checks if Yarn (@yarnpkg) is available.
https://github.com/danielbayerlein/caniuse-yarn

caniuse npm yarn

Last synced: 26 days ago
JSON representation

❓ Can I use Yarn? caniuse-yarn checks if Yarn (@yarnpkg) is available.

Awesome Lists containing this project

README

        

# caniuse-yarn

[![npm version](https://badge.fury.io/js/%40danielbayerlein%2Fcaniuse-yarn.svg)](https://badge.fury.io/js/%40danielbayerlein%2Fcaniuse-yarn)
[![Actions Status](https://github.com/danielbayerlein/caniuse-yarn/workflows/CI/badge.svg)](https://github.com/danielbayerlein/caniuse-yarn/actions)
[![Codecov](https://codecov.io/gh/danielbayerlein/caniuse-yarn/branch/master/graph/badge.svg)](https://codecov.io/gh/danielbayerlein/caniuse-yarn)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=danielbayerlein/caniuse-yarn)](https://dependabot.com)

**caniuse-yarn** checks if [Yarn](https://github.com/yarnpkg/yarn) is available.

## Installation

### Library

```bash
# npm
npm install @danielbayerlein/caniuse-yarn --save

# Yarn
yarn add @danielbayerlein/caniuse-yarn
```

### CLI

```bash
# npm
npm install @danielbayerlein/caniuse-yarn --global

# Yarn
yarn global add @danielbayerlein/caniuse-yarn
```

## Usage

### Library

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

### CLI

```bash
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](../../pull/new/master)

## Copyright

Copyright (c) 2016-present Daniel Bayerlein. See [LICENSE](./LICENSE.md) for details.