3.0.0 • Published 3 years ago

has-yarn v3.0.0

Weekly downloads
4,758,988
License
MIT
Repository
github
Last release
3 years ago

has-yarn

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
import hasYarn from '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()

The current working directory.

Related

@prisma/migrate@prisma/sdkeasy-select-rninit-log4brainsreact-native-bluetooth2ts-redux-store-templateairscanairscan-examplereact-native-esc-pos-sahaabeatpro-ssr@borisovart/atol-kkt-moduledeneme323112@ntt_app/react-native-custom-notificationdiscord-music-botsreact-native-covid-sdk@saeon/quick-formmysql-formatreact-native-printer-brothersreact-native-shekhar-bridge-testcogoportutilsdyx-react@oiti/documentoscopy-react-nativequoc-testluminos-ui-core@everything-registry/sub-chunk-1828jawwy-sdkjawwy_gamification_releasereact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgreact-native-jawwy_samplegix-pattern-lab-cligriffin-ui-librarykhaled-salem-custom-componentskornm2m-chartjs-plugin-crosshairmama-exporterhas-lockfileharumerrorhas-yarn-clihexagon-clihookemhw9hong1-utilsinstall-isjordy-frijters-test-libjohn-test-upgradejrennsoh88-react-native-scroll-indicatormini-storybookmiracle-webpack-tree-shakingnative-apple-loginnew-awesome-4321native-google-loginnative-date-picker-modulenative-modal-damage-vehiclenative-kakao-loginmpesa-cookiemooyaho-cling-search-dropdownnetlify-nextjsmpesa-cookie-jarnode-auto-installnpm-all-packagesnpm-custom-lib-resuenpm-run-interactivenode-sitecore-cli@samwinslow/edgedb@react-native-ui-design/button@pattern-lab/cli@praella/localisationist@pika/publish@thinxviewx/core-rn@therealklanni/has-yarn-cli@tonysusi/vapid@tsed/monorepo-utils@types/has-yarn@taingo97/react-native-awesome-module@taingo97/react-native-bluetooth-xprinter@taingo97/react-native-expo-key-rsa-kt@taingo97/react-native-expo-rsa@taingo97/react-native-generate-key-rsa@taingo97/react-native-key-rsa@taingo97/react-native-print-xprinter@taingo97/react-native-rsa@taingo97/react-native-rsa-expo@taingo97/react-native-sunmi-printer@taingo97/react-native-telpo-printer@tensei/cli@ryaninvents/changeset-run@ryaninvents/plugin-bundle-dependencies@saad27/react-native-bottom-tab-tour@saeon/logger@smartsheet-bridge/extension-scripts@sidghimire/react-native-mapbox-navigation@pliny/cli@sephriot/react-native-persistable-uri@status-im/react-native-transparent-videowifi_configuration_packagewhatsconc
3.0.0

3 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.0.0

8 years ago