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

clap

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clap - npm Package Compare versions

Comparing version 1.0.0-alpha to 1.0.0-alpha.2

8

index.js

@@ -95,6 +95,6 @@

// --no-flag - invert value if flag is boolean
.replace(/^--(no-)?([a-zA-Z][a-zA-Z0-9\-\_]+)\s*/, function(m, no, name){
self.name = name;
self.long = (no || '') + name;
self.defValue = !!no;
.replace(/^--([a-zA-Z][a-zA-Z0-9\-\_]+)\s*/, function(m, name){
self.long = name;
self.name = name.replace(/(^|-)no-/, '$1');
self.defValue = self.name != self.long;

@@ -101,0 +101,0 @@ return '';

@@ -6,3 +6,3 @@ {

"author": "Roman Dvornov <rdvornov@gmail.com>",
"version": "1.0.0-alpha",
"version": "1.0.0-alpha.2",
"keywords": ["cli", "command", "option", "argument", "completion"],

@@ -9,0 +9,0 @@ "homepage": "https://github.com/lahmatiy/clap",

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

[![NPM version](https://badge.fury.io/js/clap.png)](http://badge.fury.io/js/clap) [![Build Status](https://travis-ci.org/lahmatiy/clap.png?branch=master)](https://travis-ci.org/lahmatiy/clap)
# Clap.js

@@ -2,0 +4,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