Socket
Socket
Sign inDemoInstall

has-flag

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

has-flag - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

2

index.js

@@ -0,1 +1,3 @@

import process from 'process'; // eslint-disable-line node/prefer-global/process
export default function hasFlag(flag, argv = process.argv) {

@@ -2,0 +4,0 @@ const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');

2

package.json
{
"name": "has-flag",
"version": "5.0.0",
"version": "5.0.1",
"description": "Check if argv has a specific flag",

@@ -5,0 +5,0 @@ "license": "MIT",

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