{"name":"has-yarn","version":"1.0.0","description":"Check if a project is using Yarn","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/has-yarn.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["yarn","has","detect","is","project","app","module","package","manager","npm"],"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"1cca9daed8891b97535c6d5a6b25e5d45ec84142","bugs":{"url":"https://github.com/sindresorhus/has-yarn/issues"},"homepage":"https://github.com/sindresorhus/has-yarn#readme","_id":"has-yarn@1.0.0","_shasum":"89e25db604b725c8f5976fff0addc921b828a5a7","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"89e25db604b725c8f5976fff0addc921b828a5a7","tarball":"http://registry-npm.ywwl.com/has-yarn/download/has-yarn-1.0.0.tgz","integrity":"sha512-UAI4b48aqrdez88CwMfC9s+gcJ25O1qg0/hS5eKOsIF5tOw2EYcgGsryYF6TEI5G8SeCYzFBt5Z04D/BDABYSQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH3L/n599HgNZJI5Rjik8i0Kh571YM+q6ESu0LIyKMMAAiAIcXdtOY9j+zTfpLc5J1RR798tVij+maf38udEMpN54A=="}],"size":1632,"noattachment":false,"key":"/has-yarn/-/has-yarn-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/has-yarn-1.0.0.tgz_1481558101230_0.7273892587982118"},"directories":{},"readme":"# has-yarn\n\n> Check if a project is using [Yarn](https://yarnpkg.com)\n\nUseful for tools that needs to know whether to use `yarn` or `npm` to install dependencies.\n\nIt checks if a `yarn.lock` file is present in the working directory.\n\n## Install\n\n```\n$ npm install has-yarn\n```\n\n## Usage\n\n```\n.\n├── foo\n│   └── package.json\n└── bar\n    ├── package.json\n    └── yarn.lock\n```\n\n```js\nimport hasYarn from 'has-yarn';\n\nhasYarn('foo');\n//=> false\n\nhasYarn('bar');\n//=> true\n```\n\n## API\n\n### hasYarn(cwd?)\n\nReturns a `boolean` of whether the project uses Yarn.\n\n#### cwd\n\nType: `string`\\\nDefault: `process.cwd()`\n\nThe current working directory.\n\n## Related\n\n- [has-yarn-cli](https://github.com/sindresorhus/has-yarn-cli) - CLI for this module\n","publish_time":1481558101875,"_cnpm_publish_time":1481558101875,"dist-tags":{"latest":"4.0.0"}}