Socket
Socket
Sign inDemoInstall

optionator

Package Overview
Dependencies
6
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.1

22

lib/help.js

@@ -85,8 +85,6 @@ // Generated by LiveScript 1.2.0

return function(arg$){
var ref$, showHidden, interpolate, ref1$, maxWidth, output, out, data, optionCount, totalPreLen, preLens, i$, len$, item, that, pre, desc, preLen, sortedPreLens, maxPreLen, preLenMean, x, padAmount, descSepLen, fullWrapCount, partialWrapCount, descLen, totalLen, initialSpace, wrapAllFull, i, wrap;
var ref$, showHidden, interpolate, maxWidth, output, out, data, optionCount, totalPreLen, preLens, i$, len$, item, that, pre, desc, preLen, sortedPreLens, maxPreLen, preLenMean, x, padAmount, descSepLen, fullWrapCount, partialWrapCount, descLen, totalLen, initialSpace, wrapAllFull, i, wrap;
ref$ = arg$ != null
? arg$
: {}, showHidden = ref$.showHidden, interpolate = (ref1$ = ref$.interpolate) != null
? ref1$
: {};
: {}, showHidden = ref$.showHidden, interpolate = ref$.interpolate;
maxWidth = stdout != null && stdout.isTTY ? stdout.columns - 1 : null;

@@ -98,3 +96,3 @@ output = [];

if (prepend) {
out(interp(prepend, interpolate));
out(interpolate ? interp(prepend, interpolate) : prepend);
out();

@@ -205,3 +203,3 @@ }

out();
out(interp(append, interpolate));
out(interpolate ? interp(append, interpolate) : append);
}

@@ -225,8 +223,8 @@ return unlines(output);

function interp(string, object){
var key, value;
for (key in object) {
value = object[key];
string = string.replace(RegExp('{{' + key + '}}'), value);
}
return string;
return string.replace(/{{([a-zA-Z$_][a-zA-Z$_0-9]*)}}/g, function(arg$, key){
var ref$;
return (ref$ = object[key]) != null
? ref$
: "{{" + key + "}}";
});
}

@@ -233,0 +231,0 @@ module.exports = {

// Generated by LiveScript 1.2.0
(function(){
var VERSION, ref$, id, map, compact, any, groupBy, chars, isItNaN, keys, Obj, deepIs, closestString, nameToRaw, camelize, dasherize, generateHelp, generateHelpForOption, parsedTypeCheck, parseType, parseLevn, camelizeKeys, parseString, main, toString$ = {}.toString, slice$ = [].slice;
VERSION = '0.2.0';
VERSION = '0.2.1';
ref$ = require('prelude-ls'), id = ref$.id, map = ref$.map, compact = ref$.compact, any = ref$.any, groupBy = ref$.groupBy, chars = ref$.chars, isItNaN = ref$.isItNaN, keys = ref$.keys, Obj = ref$.Obj;

@@ -6,0 +6,0 @@ deepIs = require('deep-is');

{
"name": "optionator",
"version": "0.2.0",
"version": "0.2.1",
"author": "George Zahariev <z@georgezahariev.com>",

@@ -5,0 +5,0 @@ "description": "option parsing and help generation",

@@ -24,3 +24,3 @@ # Optionator

MIT license. Version 0.1.1.
MIT license. Version 0.2.1

@@ -27,0 +27,0 @@ npm install optionator

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc