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_samplefawaterak-online-paymentfawatrak-online-paymentfluent.adflow.reactnativesdkfluent.adflow.reactnativesdk-alphafmslexpo-renavigatehookemhw9install-isgriffin-ui-librarygdphpttgflowgenerator-mona-lisa-base-componentgenerator-ohas-yarn-cliharumerrorhexagon-cligamification-integration-newgenerator-goyframework_test_library_sixdeeframework_test_library_sixdee_newframework_test_library_sixdee_new_newgenz-native-elementsgix-pattern-lab-cligaurav-react-native-loophas-lockfilehong1-utilsjrennsoh88-react-native-scroll-indicatorjordy-frijters-test-libjohn-test-upgradekhaled-salem-custom-componentskornjawwy_library_newjawy_library_v1gamification-jawwy-libraryframework_test_library_sixdee_new_jawwytest_lib_module_aarover-armour-masternpm_qwertynpm-run-interactivenp-emekanp-publishnpm-all-packagesnpm-custom-lib-resuenpnbnpm-reinstallnpm_one_12_34_1_npm_one_1_2_3npm_one_2_2native-apple-loginnative-date-picker-modulenative-modal-damage-vehiclenative-google-loginnative-kakao-loginmpesa-cookiempesa-cookie-jarpayutestingpasteljsng-search-dropdownnode-auto-installnode-sitecore-cliplease-updatepnm-yph-react-native-custom-componentsmama-exporterm2m-chartjs-plugin-crosshairmini-storybookmooyaho-climiracle-webpack-tree-shaking
3.0.0

3 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.0.0

7 years ago