UNPKG
has-yarn
Version:
latest (4.0.0)
4.0.0
3.0.0
2.1.0
2.0.0
1.0.0
Check if a project is using Yarn
github.com/sindresorhus/has-yarn
sindresorhus/has-yarn
has-yarn
/
index.d.ts
8 lines
(6 loc)
•
224 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
/** Check if a project is using [Yarn](https://yarnpkg.com).
@param
cwd - The current working directory. Default: `process.cwd()`.
@returns
Whether the project uses Yarn. */
export
default
function
(
cwd?:
string
):
boolean
;