Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/danielbayerlein/caniuse-yarn
- Owner: danielbayerlein
- License: mit
- Created: 2016-10-18T18:10:41.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-04-17T04:57:28.000Z (over 1 year ago)
- Last Synced: 2024-09-20T03:41:51.265Z (about 2 months ago)
- Topics: caniuse, npm, yarn
- Language: JavaScript
- Homepage:
- Size: 1.82 MB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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.