{"name":"has-yarn","version":"2.1.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":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["yarn","has","detect","is","project","app","module","package","manager","npm"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.1","xo":"^0.24.0"},"gitHead":"b7b7b341a2c339050bade6b77152b266c2bdc89c","bugs":{"url":"https://github.com/sindresorhus/has-yarn/issues"},"homepage":"https://github.com/sindresorhus/has-yarn#readme","_id":"has-yarn@2.1.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==","shasum":"137e11354a7b5bf11aa5cb649cf0c6f3ff2b2e77","tarball":"http://registry-npm.ywwl.com/has-yarn/download/has-yarn-2.1.0.tgz","fileCount":5,"unpackedSize":3392,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcoSrPCRA9TVsSAnZWagAAK70P/RODGqpE8oEYl26GLC/8\n/zDdpYheVd6QOVO8wBBmuLWMIRYhn6G6dJNL+YBqf09LStabhGEyAJz+d6bW\ntOaOiDu+6lgmTkwp0FUPQj3YVoH5s3HIfqtY/OZghZbmwhtw5Bk+/aY8jnXx\nd54KOYSLYtUt8L6sgfUt/2q4b0qULK4eWtK1xVaJbG2ui3b2cWMlckgoN85B\nWTD5W99i2R/y4QT8CDKb3Ke/NdIrT53oOfzTZJqqElqGlesIY3B3yAUWU10o\nC10XROkMsmkuYPr+1lQYw9lQotbzJKaGUZKb5PgUFNJH4DW/O804G3NusP9C\nWMJFLA32wlvlHK7F2U7vuLbIGzoj3ggUu7ZvRWhYDvSlozIOJlez994zDi8s\noZWBXPm1kOdfkTECyoP51jZ0GCNxGew1KDjniO3GpEmKfIBU0ER37sEBs67y\nzpOMSm7bz6su+Hw8vJzU5M+VCz0yNDk6yh9FnLfoG4oCLIosc8bAS6ceK4b8\nFDRlSA6auBaqeqniln/B3vfJVRRMhXNBIZBlTyWDFVCly9B787z8xAJjvFwD\n3XMNg2Z7EMeDlIThtoFqzX799DVGOyht8pIfhrBZJmQEXVMIhvcfp78HoLWL\nDG5+oWXMnL2UAv71RfR5eTih4avJijr50idkonEOtRFULEY4PEpzS0oRUm/j\nkH0E\r\n=7ej/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICaiNmXrVOfj+wIlT2Jou37/c4BJd5S3BGf/sXtDzbxXAiEAlYEMQc9Gs5a0xpFHsyA8ZFKcahlCqgF2WohfKEM5dlo="}],"size":1883,"noattachment":false,"key":"/has-yarn/-/has-yarn-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/has-yarn_2.1.0_1554066126839_0.4025715435893884"},"_hasShrinkwrap":false,"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":1554066126987,"_cnpm_publish_time":1554066126987,"dist-tags":{"latest":"4.0.0"}}