| 1 |
{ |
| 2 |
"_id": "has-yarn", |
| 3 |
"_rev": "3-c1f4eb9d8d442511bb1fe62e424b48b1", |
| 4 |
"name": "has-yarn", |
| 5 |
"description": "Check if a project is using Yarn", |
| 6 |
"dist-tags": { |
| 7 |
"latest": "2.1.0" |
| 8 |
}, |
| 9 |
"versions": { |
| 10 |
"1.0.0": { |
| 11 |
"name": "has-yarn", |
| 12 |
"version": "1.0.0", |
| 13 |
"description": "Check if a project is using Yarn", |
| 14 |
"license": "MIT", |
| 15 |
"repository": { |
| 16 |
"type": "git", |
| 17 |
"url": "git+https://github.com/sindresorhus/has-yarn.git" |
| 18 |
}, |
| 19 |
"author": { |
| 20 |
"name": "Sindre Sorhus", |
| 21 |
"email": "[email protected]", |
| 22 |
"url": "sindresorhus.com" |
| 23 |
}, |
| 24 |
"engines": { |
| 25 |
"node": ">=4" |
| 26 |
}, |
| 27 |
"scripts": { |
| 28 |
"test": "xo && ava" |
| 29 |
}, |
| 30 |
"files": [ |
| 31 |
"index.js" |
| 32 |
], |
| 33 |
"keywords": [ |
| 34 |
"yarn", |
| 35 |
"has", |
| 36 |
"detect", |
| 37 |
"is", |
| 38 |
"project", |
| 39 |
"app", |
| 40 |
"module", |
| 41 |
"package", |
| 42 |
"manager", |
| 43 |
"npm" |
| 44 |
], |
| 45 |
"devDependencies": { |
| 46 |
"ava": "*", |
| 47 |
"xo": "*" |
| 48 |
}, |
| 49 |
"xo": { |
| 50 |
"esnext": true |
| 51 |
}, |
| 52 |
"gitHead": "1cca9daed8891b97535c6d5a6b25e5d45ec84142", |
| 53 |
"bugs": { |
| 54 |
"url": "https://github.com/sindresorhus/has-yarn/issues" |
| 55 |
}, |
| 56 |
"homepage": "https://github.com/sindresorhus/has-yarn#readme", |
| 57 |
"_id": "[email protected]", |
| 58 |
"_shasum": "89e25db604b725c8f5976fff0addc921b828a5a7", |
| 59 |
"_from": ".", |
| 60 |
"_npmVersion": "3.10.8", |
| 61 |
"_nodeVersion": "6.9.1", |
| 62 |
"_npmUser": { |
| 63 |
"name": "sindresorhus", |
| 64 |
"email": "[email protected]" |
| 65 |
}, |
| 66 |
"dist": { |
| 67 |
"shasum": "89e25db604b725c8f5976fff0addc921b828a5a7", |
| 68 |
"tarball": "https://registry.npmjs.org/has-yarn/-/has-yarn-1.0.0.tgz" |
| 69 |
}, |
| 70 |
"maintainers": [ |
| 71 |
{ |
| 72 |
"name": "sindresorhus", |
| 73 |
"email": "[email protected]" |
| 74 |
} |
| 75 |
], |
| 76 |
"_npmOperationalInternal": { |
| 77 |
"host": "packages-18-east.internal.npmjs.com", |
| 78 |
"tmp": "tmp/has-yarn-1.0.0.tgz_1481558101230_0.7273892587982118" |
| 79 |
}, |
| 80 |
"directories": {} |
| 81 |
}, |
| 82 |
"2.0.0": { |
| 83 |
"name": "has-yarn", |
| 84 |
"version": "2.0.0", |
| 85 |
"description": "Check if a project is using Yarn", |
| 86 |
"license": "MIT", |
| 87 |
"repository": { |
| 88 |
"type": "git", |
| 89 |
"url": "git+https://github.com/sindresorhus/has-yarn.git" |
| 90 |
}, |
| 91 |
"author": { |
| 92 |
"name": "Sindre Sorhus", |
| 93 |
"email": "[email protected]", |
| 94 |
"url": "sindresorhus.com" |
| 95 |
}, |
| 96 |
"engines": { |
| 97 |
"node": ">=8" |
| 98 |
}, |
| 99 |
"scripts": { |
| 100 |
"test": "xo && ava && tsd-check" |
| 101 |
}, |
| 102 |
"keywords": [ |
| 103 |
"yarn", |
| 104 |
"has", |
| 105 |
"detect", |
| 106 |
"is", |
| 107 |
"project", |
| 108 |
"app", |
| 109 |
"module", |
| 110 |
"package", |
| 111 |
"manager", |
| 112 |
"npm" |
| 113 |
], |
| 114 |
"devDependencies": { |
| 115 |
"ava": "^1.2.1", |
| 116 |
"tsd-check": "^0.3.0", |
| 117 |
"xo": "^0.24.0" |
| 118 |
}, |
| 119 |
"gitHead": "1eb8b0b50c8927363bb91a8462aa3a22f04811f1", |
| 120 |
"bugs": { |
| 121 |
"url": "https://github.com/sindresorhus/has-yarn/issues" |
| 122 |
}, |
| 123 |
"homepage": "https://github.com/sindresorhus/has-yarn#readme", |
| 124 |
"_id": "[email protected]", |
| 125 |
"_nodeVersion": "8.15.0", |
| 126 |
"_npmVersion": "6.9.0", |
| 127 |
"_npmUser": { |
| 128 |
"name": "sindresorhus", |
| 129 |
"email": "[email protected]" |
| 130 |
}, |
| 131 |
"dist": { |
| 132 |
"integrity": "sha512-QGlbr/PoBGNBNCpmoM8IgN2S9ZoCd8IWdzQEhXVsGIsfYw9UPayvb9f3ZFNtAzsNUQk25ooyHDyIy9EHNnlOdg==", |
| 133 |
"shasum": "11b77911708db3c5cccd07400537d9acab6131f1", |
| 134 |
"tarball": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.0.0.tgz", |
| 135 |
"fileCount": 5, |
| 136 |
"unpackedSize": 3147, |
| 137 |
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJch+TaCRA9TVsSAnZWagAAingP/3A/VIhAffbdHyM2aAKs\nJfo5QZQjoToLEshEsAgjxRndOm7HfgcrD0e1hCefv2xLRn0aa52xwo3JGK+s\nrL/RxlperTpnIIQZstfx4CV3Ej6iyXQL9WrPldPQ+/xFe6KHSoq3K10uC291\nVvOOYnHivbOEzc3SLpN/5pf57O7vRjNkLkVehW7NzV5VE6BPJFd+VUjd8Eu+\naFD/Px934/SNzkhbBJ1KpMK1iUaOPzZ6fW0xnZTxrw4GBaX1OBYi+/5moHr/\nl1+QouhvD2tZvBAHbN5mBd3dO3II6wWCgluOgOUIvqveBdmwtQePMgJeBZsI\nFM1kOLu9q70ZUmVARNq3eeXW6xHIhwYQVWvHfGHeZnZu4M/uT57ZI9FypfAz\nRebbTwel8F68gZNqrNgWsloNBlHjZm0wns+uiKJ1ml3NMF8DKkY/ifIC8Af3\ntASYCebqWte9QYrOr9iLZHUS0fuBLqnqCGvixBczvQYTFu56mkgID5aOwAcY\ntJawh7U26l6buT+BPu6p3PSXitnxtZoJYCY9OEMaBrjJzo5L3TxL1PonWwu8\nnl86D0OHGpwlXm2FfLGyrjKFzl+jsmhuvb6QepqXyGWT60GFqttaj7glgpBC\nbJg+XLUXnjrtNU15tbQ5WQIJo5dy5FqziJb2BNylx8kR9qXdhj2BFbPz8c3G\nJGpz\r\n=zD8h\r\n-----END PGP SIGNATURE-----\r\n" |
| 138 |
}, |
| 139 |
"maintainers": [ |
| 140 |
{ |
| 141 |
"name": "sindresorhus", |
| 142 |
"email": "[email protected]" |
| 143 |
} |
| 144 |
], |
| 145 |
"directories": {}, |
| 146 |
"_npmOperationalInternal": { |
| 147 |
"host": "s3://npm-registry-packages", |
| 148 |
"tmp": "tmp/has-yarn_2.0.0_1552409817487_0.4087908635323412" |
| 149 |
}, |
| 150 |
"_hasShrinkwrap": false |
| 151 |
}, |
| 152 |
"2.1.0": { |
| 153 |
"name": "has-yarn", |
| 154 |
"version": "2.1.0", |
| 155 |
"description": "Check if a project is using Yarn", |
| 156 |
"license": "MIT", |
| 157 |
"repository": { |
| 158 |
"type": "git", |
| 159 |
"url": "git+https://github.com/sindresorhus/has-yarn.git" |
| 160 |
}, |
| 161 |
"author": { |
| 162 |
"name": "Sindre Sorhus", |
| 163 |
"email": "[email protected]", |
| 164 |
"url": "sindresorhus.com" |
| 165 |
}, |
| 166 |
"engines": { |
| 167 |
"node": ">=8" |
| 168 |
}, |
| 169 |
"scripts": { |
| 170 |
"test": "xo && ava && tsd" |
| 171 |
}, |
| 172 |
"keywords": [ |
| 173 |
"yarn", |
| 174 |
"has", |
| 175 |
"detect", |
| 176 |
"is", |
| 177 |
"project", |
| 178 |
"app", |
| 179 |
"module", |
| 180 |
"package", |
| 181 |
"manager", |
| 182 |
"npm" |
| 183 |
], |
| 184 |
"devDependencies": { |
| 185 |
"ava": "^1.4.1", |
| 186 |
"tsd": "^0.7.1", |
| 187 |
"xo": "^0.24.0" |
| 188 |
}, |
| 189 |
"gitHead": "b7b7b341a2c339050bade6b77152b266c2bdc89c", |
| 190 |
"bugs": { |
| 191 |
"url": "https://github.com/sindresorhus/has-yarn/issues" |
| 192 |
}, |
| 193 |
"homepage": "https://github.com/sindresorhus/has-yarn#readme", |
| 194 |
"_id": "[email protected]", |
| 195 |
"_nodeVersion": "8.15.0", |
| 196 |
"_npmVersion": "6.9.0", |
| 197 |
"_npmUser": { |
| 198 |
"name": "sindresorhus", |
| 199 |
"email": "[email protected]" |
| 200 |
}, |
| 201 |
"dist": { |
| 202 |
"integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==", |
| 203 |
"shasum": "137e11354a7b5bf11aa5cb649cf0c6f3ff2b2e77", |
| 204 |
"tarball": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz", |
| 205 |
"fileCount": 5, |
| 206 |
"unpackedSize": 3392, |
| 207 |
"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" |
| 208 |
}, |
| 209 |
"maintainers": [ |
| 210 |
{ |
| 211 |
"name": "sindresorhus", |
| 212 |
"email": "[email protected]" |
| 213 |
} |
| 214 |
], |
| 215 |
"directories": {}, |
| 216 |
"_npmOperationalInternal": { |
| 217 |
"host": "s3://npm-registry-packages", |
| 218 |
"tmp": "tmp/has-yarn_2.1.0_1554066126839_0.4025715435893884" |
| 219 |
}, |
| 220 |
"_hasShrinkwrap": false |
| 221 |
} |
| 222 |
}, |
| 223 |
"readme": "# has-yarn [](https://travis-ci.org/sindresorhus/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\n## Install\n\n```\n$ npm install has-yarn\n```\n\n\n## Usage\n\n```\n.\n├── foo\n│ └── package.json\n└── bar\n ├── package.json\n └── yarn.lock\n```\n\n```js\nconst hasYarn = require('has-yarn');\n\nhasYarn('foo');\n//=> false\n\nhasYarn('bar');\n//=> true\n```\n\n\n## API\n\n### hasYarn([cwd])\n\nReturns a `boolean` of whether the project uses Yarn.\n\n#### cwd\n\nType: `string`<br>\nDefault: `process.cwd()`\n\nCurrent working directory.\n\n\n## Related\n\n- [has-yarn-cli](https://github.com/sindresorhus/has-yarn-cli) - CLI for this module\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n", |
| 224 |
"maintainers": [ |
| 225 |
{ |
| 226 |
"name": "sindresorhus", |
| 227 |
"email": "[email protected]" |
| 228 |
} |
| 229 |
], |
| 230 |
"time": { |
| 231 |
"modified": "2019-03-31T21:02:10.917Z", |
| 232 |
"created": "2016-12-12T15:55:01.875Z", |
| 233 |
"1.0.0": "2016-12-12T15:55:01.875Z", |
| 234 |
"2.0.0": "2019-03-12T16:56:57.619Z", |
| 235 |
"2.1.0": "2019-03-31T21:02:06.987Z" |
| 236 |
}, |
| 237 |
"homepage": "https://github.com/sindresorhus/has-yarn#readme", |
| 238 |
"keywords": [ |
| 239 |
"yarn", |
| 240 |
"has", |
| 241 |
"detect", |
| 242 |
"is", |
| 243 |
"project", |
| 244 |
"app", |
| 245 |
"module", |
| 246 |
"package", |
| 247 |
"manager", |
| 248 |
"npm" |
| 249 |
], |
| 250 |
"repository": { |
| 251 |
"type": "git", |
| 252 |
"url": "git+https://github.com/sindresorhus/has-yarn.git" |
| 253 |
}, |
| 254 |
"author": { |
| 255 |
"name": "Sindre Sorhus", |
| 256 |
"email": "[email protected]", |
| 257 |
"url": "sindresorhus.com" |
| 258 |
}, |
| 259 |
"bugs": { |
| 260 |
"url": "https://github.com/sindresorhus/has-yarn/issues" |
| 261 |
}, |
| 262 |
"license": "MIT", |
| 263 |
"readmeFilename": "readme.md" |
| 264 |
} |