Socket
Socket
Sign inDemoInstall

get-options

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.1.1

11

CHANGELOG.md

@@ -10,2 +10,12 @@ Change Log

[v1.1.1]
------------------------------------------------------------------------
**August 24th, 2016**
Housekeeping release to optimise module distribution and fix minor bugs.
* __Fixed:__ Exceptions thrown when passing blank arguments
* __Fixed:__ Main file shouldn't include hashbang or be executable
* __Fixed:__ Unnecessary files included with NPM downloads
[v1.1.0]

@@ -42,4 +52,5 @@ ------------------------------------------------------------------------

[Referenced links]:_____________________________________________________
[v1.1.1]: https://github.com/Alhadis/GetOptions/releases/tag/v1.1.1
[v1.1.0]: https://github.com/Alhadis/GetOptions/releases/tag/v1.1.0
[v1.0.1]: https://github.com/Alhadis/GetOptions/releases/tag/v1.0.1
[v1.0.0]: https://github.com/Alhadis/GetOptions/releases/tag/v1.0.0

9

index.js

@@ -1,2 +0,1 @@

#!/usr/local/bin/node --es_staging
"use strict";

@@ -198,2 +197,4 @@

/** Bail early if passed a blank string */
if(!input) return opts;

@@ -268,4 +269,8 @@ /** Stop parsing anything after a "--" delimiter */

/** Do nothing if given nothing */
if(!input || input.length === 0)
return {options: {}, argv: []};
/** Take a different approach if optdefs aren't specified */
if(null == optdef)
if(null == optdef || "" === optdef || false === optdef)
return autoOpts(input, config);

@@ -272,0 +277,0 @@

{
"name": "get-options",
"version": "1.1.0",
"version": "1.1.1",
"description": "JavaScript's answer to getopts. Simple, obvious, and direct.",

@@ -9,2 +9,3 @@ "keywords": ["CLI", "getopt", "getopts", "options", "argv", "command-line", "configuration", "config"],

"engines": { "node": ">=5.0.0" },
"files": ["index.js"],
"dependencies": {},

@@ -11,0 +12,0 @@ "devDependencies": {

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