From 7fff4499fd915bcea3fa93b1aa8b35f4fe7a6027 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 28 May 2017 00:38:50 +0200 Subject: add linting (and some initial fixes) --- node_modules/has-yarn/readme.md | 53 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 node_modules/has-yarn/readme.md (limited to 'node_modules/has-yarn/readme.md') diff --git a/node_modules/has-yarn/readme.md b/node_modules/has-yarn/readme.md new file mode 100644 index 000000000..5ca107d90 --- /dev/null +++ b/node_modules/has-yarn/readme.md @@ -0,0 +1,53 @@ +# has-yarn [![Build Status](https://travis-ci.org/sindresorhus/has-yarn.svg?branch=master)](https://travis-ci.org/sindresorhus/has-yarn) + +> Check if a project is using [Yarn](https://yarnpkg.com) + +Useful for tools that needs to know whether to use `yarn` or `npm` to install dependencies. + + +## Install + +``` +$ npm install --save has-yarn +``` + + +## Usage + +``` +. +├── foo +│   └── package.json +└── bar + ├── package.json + └── yarn.lock +``` + +```js +const hasYarn = require('has-yarn'); + +hasYarn('foo'); +//=> false + +hasYarn('bar'); +//=> true +``` + + +## API + +### hasYarn([cwd]) + +Returns a `boolean`. + +#### cwd + +Type: `string`
+Default: `process.cwd()` + +Current working directory. + + +## License + +MIT © [Sindre Sorhus](https://sindresorhus.com) -- cgit v1.2.3