Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

has-yarn

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

has-yarn - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

23

index.d.ts

@@ -1,7 +0,16 @@

/**
* Check if a project is using [Yarn](https://yarnpkg.com).
*
* @param cwd - Current working directory. Default: `process.cwd()`.
* @returns Whether the project uses Yarn.
*/
export default function hasYarn(cwd?: string): boolean;
declare const hasYarn: {
/**
* Check if a project is using [Yarn](https://yarnpkg.com).
*
* @param cwd - Current working directory. Default: `process.cwd()`.
* @returns Whether the project uses Yarn.
*/
(cwd?: string): boolean;
// TODO: Remove this for the next major release, refactor the whole definition to:
// declare function hasYarn(cwd?: string): boolean;
// export = hasYarn;
default: typeof hasYarn;
};
export = hasYarn;

@@ -8,2 +8,3 @@ 'use strict';

module.exports = hasYarn;
// TODO: Remove this for the next major release
module.exports.default = hasYarn;
{
"name": "has-yarn",
"version": "2.0.0",
"version": "2.1.0",
"description": "Check if a project is using Yarn",

@@ -16,3 +16,3 @@ "license": "MIT",

"scripts": {
"test": "xo && ava && tsd-check"
"test": "xo && ava && tsd"
},

@@ -36,6 +36,6 @@ "files": [

"devDependencies": {
"ava": "^1.2.1",
"tsd-check": "^0.3.0",
"ava": "^1.4.1",
"tsd": "^0.7.1",
"xo": "^0.24.0"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc